Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
coolwaters
Contributor II
Contributor II

Value for Max Month.

Hello,

i am trying to find a way to achive the following.

Have one bar chart with cyclic dimension, Year & Quarter.

Have two expressions, One for showing the total sales which is working fine.

Need help with the expression for closing stock. I have the closing stock for each month in the table.

If Year is selected as the dimension then the closing stock needs to be for the max month of that year.

If Quarter is selected then the closing stock needs to be for the max month of each quarter.

Can this be achieved via one expression.

Hope i am able to put forth my requirement clearly.

Thanks.

1 Reply
jagan
Luminary Alumni
Luminary Alumni

Hi

Use this expression

=Sum({<Month={'$(=Month(Max(DateFieldName)))'}>} ClosingStock)

Hope this helps you.

Regards,

Jagan.