Discussion board where members can get started with Qlik Sense.
I would like to compare the sales amount for each of my customer for different years and be able to know if the sales amount for a customer in 2017 is upper or lower than in 2016.
For example, if one of my customer in 2016 had a sales amount of 1M€ and 950k€ in 2017 i would like to display the 2017 amount in red.
This should be done in a pivot table with my "Customers" and the "Years" as dimension and my "Sales Amount" as a measure
Don't hesitate to ask me further details if my explanation aren't enough clear.
Thanks in advance,
can you share some sample data and a dummy output?
In this example, I need to display for the customer A the sales amount for 2017 in red because the sum of sales amount for 2016 is upper than in 2017.
For the customer B, I need to display the sales amount for 2017 in green because the sum of sales amount for 2016 is lower than in 2016.
Yes, that's it
PFA. Using your data (subfield function and qliksense version)
just use below text color expression like this
if your issue got resolved, help to close this thread by marking as correct. thanks
But unfortunately, this solution don't works if I have more than 2 Years.
Is it possible to do the same with 6 years? (From 2012 to 2017)
Thanks in advance
Yes it can be done. u need to bucket year for each column then it should work. can you share your
mock data from 2012 to 2017 and expected output format.
I'd like to do it for this kind of table.
What is the formula I should use ?
load * Inline [Customer,Product,Year,SalesAmount
how about your conditional color? expected output only in 2017 year or below rule can you confirm your expected result ?
if (current year > all the historical year , then red(), green())
2014 vs 2015
2015 vs 2016
2016 vs 2017?