Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Restrict Customer name using calculated dimension

Hi All

I have 3 columns

Customer YearMonth Revenue

I wanted to show the customers if the currentmonth - previous month revenue < 0

So how to do that on calculated dimension.??

I have an expression already calculating last three month sales.

So i need to do this in calculated dimension.. please help me..

1 Reply
Not applicable
Author

This should work if you have MonthID as a numeric field.If you dont use condition you use for current month.

if(aggr(Sum({<MonthID={"$(=Max(MonthID))"}>}Revenue)-Sum({<MonthID={"$(=Max(MonthID)-1)"}>}Revenue),Customer)<0,Customer)

Kiran.