Discussion board where members can get started with Qlik Sense.
I want to do the following. I have a table like this:
And I want to display the table like this:
I want to highlight alternately corresponding rows based on the date column.
Does anybody have an idea how to do this?
Nachricht geändert durch Christoph Albrecht
Recent versions of Qlik Sense allow you to use expressions to set the background color of column cells. You can try something like =if(even(max(total <Date> aggr(RowNo(),Date))),LightGray(200),White())
thanks for your answer. I updated the table. So the number of corresponding rows are not always even or odd.
Then it could be done like this:
=Pick(FMod((Index(Concat(TOTAL DISTINCT Date,'||',Date),Date)-1)/12,2)+1,Green(50),White())
The number 12 in the expression above has to be adjusted to the number of characters in your date format. The ISO date format of YYYY-DD-MM plus the separators || gives 12.
This is a reliable way of determining even and odd groups of dates.
Thanks Petter, this is also working!
So did it solve your problem then? If so please mark the thread as answered and if you want helpful....