Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

displaying the max date available from the data

I need to display the maximum date from the spreadsheet at any given point in time and the sum of the mins for that month for a particular service id

Dimensions to be max(PERIOD_NAME) and SRV_ID while the expression is simple sum(CUSTOMER_IMPACT_MINS).

but max(PERIOD_NAME) shows an error for calculated dimension.

not sure what is going wrong as when i put this in a text box it works fine but shows error when i put it in a chart

Sample data attached.

6 Replies
girirajsinh
Creator III
Creator III

What are your chart expression and dimensions?

Anonymous
Not applicable
Author

Expression is sum(CUSTOMER_IMPACT_MINS).

Dimensions need to be SRV_Id and max(PEriod Name)

girirajsinh
Creator III
Creator III

try expression

sum({<PERIOD_NAME={"=max(PERIOD_NAME)"} >} CUSTOMER_IMPACT_MINS)

Anil_Babu_Samineni

You may try

sum({<[PEriod Name] = {''$(=Max([PEriod Name]))"}>}CUSTOMER_IMPACT_MINS)


Updated, Tested


Sum({<PERIOD_NAME = {'$(=Max(PERIOD_NAME))'}>}CUSTOMER_IMPACT_MINS)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Create a variable for max period using date#. then try:

sum({<PERIOD_NAME={"=$(vEndField)"} >} CUSTOMER_IMPACT_MINS)

Good Luck,

Pravesh

girirajsinh
Creator III
Creator III

Yes as Anil Babu spotted out, I missd the expansion $ here. But this gives your always last period, as you always have periods  till Dec. So if you intend to show max across the period and wann a show that period, use Max in expression and may be period in dimension. and Uncheck "show zero values" from presentation tab, in case wannn a show all SRV_ID

sum({<PERIOD_NAME={"$(=MAX(PERIOD_NAME))"}>} CUSTOMER_IMPACT_MINS)