Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Please see the attached example. I want to show Saturdays in light gray and Sundays in gray but it doesn't work. Could you tell me where I make mistake? Thanks!
You need to compute the day for the entire column otherwise the pivot will only set color where numbers <> 0 or null.
Use this expression in the background expression (not the dimension background!) (daynum for Monday is 0 in QV)
= if(max(total <DateUse> WeekDay(DateUse))=6,rgb(200,200,200),
if(max(total <DateUse> WeekDay(DateUse))=5,rgb(240,240,240)) )
Michael
Lliyan
Try this for the background colour on your Dimension.
=if(WeekDay='Sun',rgb(200,200,200),if(WeekDay='Sat',rgb(240,240,240)) )
Best Regards, Bill
I have tried, it doesn't work
Use this expression as Background color for your Dimension
=if(WeekDay(DateUse)='Sun',rgb(200,200,200),if(WeekDay(DateUse)='Sat',rgb(240,240,240)))
Hi,
You can use this expression for your background color :
=pick(Match(WeekDay(DateUse), 'Sun', 'Sat'), rgb(200,200,200), rgb(240,240,240))
Best,
Aurélien
Did you try with colour functions Light Gray & Dark Gray (using these in IF condition where condition checks value of your dimension)?
the expressions all of you mention don't work, I have tried them and also aggr and others. I don't know what is the problem
Ok, remove your calculed dimension and use DateUse
it's the same result - not working; only when Weekday is added as dimension this fixes the background color of DateUse, but I don't want to add additional dimesnion (cannot make labels vertical then) and I don't understand why background color doesn't work when it is one-to-one unique relationship (DateUse to WeekDay)
Lliyan
Is the attached what you are after ?
Best Regards, Bill