Skip to main content

Hey Celopeers,

 

I want to create a Table within a View wihich contains 4 columns. One Column is the Dimension Column (Gives 15 Rows).

In one column the numer of invoices for the current month are counted. In the other column the number of invoices from the previous month and in the last column the number of invoices for the month before last.

 

The user want to have the coulmn names in the format "YYYY/MM" and the column names should be dynamic, so that in the new month the column names are updated automatically.

 

We are using the Knowledge Model - View Technology and no analysis.

 

I also thought of using a chart diagramm, but the users require a table.

 

I tried some things, but nothing worked.

 

So if somebody knows about how to create dynamic columns I would be very thankful for your help :D

 

 

I think it is just PQL

 

TO_STRING(ADD_MONTHS(TODAY(),-1), FORMAT ('%Y-%m')) for the dimension label

 

or something like that

 

check

https://docs.celonis.com/en/to_string.html

https://docs.celonis.com/en/add_months.html

 

and for the KPI do a COUNT(DISTINCT CASE WHEN ROUND_MONTH(dateevent) = ROUNDMONTH(ADD_MONTHS(TODAY(),-1)) THEN CASE_KEY

ELSE NULL

END)

 

HTH


Hi Guillermo,

 

thank you for your answer.

This kind of logic I've already tried. But when I enter this Code as my column Name it is just saved as string. So that means that the code will be printed, but not the result (The resulting month).

 

I think some characters and brackets are required, like when using a variable (<%= ... %>). But I don't know which one.


Hi Guillermo,

 

thank you for your answer.

This kind of logic I've already tried. But when I enter this Code as my column Name it is just saved as string. So that means that the code will be printed, but not the result (The resulting month).

 

I think some characters and brackets are required, like when using a variable (<%= ... %>). But I don't know which one.

Create a Variable type Static

 

image 

put it in the label of the KPI

 

image 

HTH


Thank you very much, this is really good to know! :)

 

But does it also work for Knowledge Models and Views. So when I want to use a KPI within a Table?

 


Thank you very much, this is really good to know! :)

 

But does it also work for Knowledge Models and Views. So when I want to use a KPI within a Table?

 

In theory the KM variables can be used in Views, like analysis variables in analysis... but not an expert there...


Thank you very much, this is really good to know! :)

 

But does it also work for Knowledge Models and Views. So when I want to use a KPI within a Table?

 

I tried different options ( View variable/KM Variable/ Global Varible) in views but no luck, please update here if you found something :)


Hi, I've also tried several things, but nothing worked. But when I find something, I will send it to you :)


Hello Celopeers colleagues,

I am working on a tracking table use case for which I require exactly the same - having dynamic column names for month-1, month-2, etc.

The View variable option does not work...as you already mentioned above.

Did you maybe find some good workaround in the meantime?

 

Thank you for any ideas!

Regards

Jan


Reply