You can add this color expression to you expression by clicking on the little plus infort of your expression:
Or you could use the color settings on the 'Visual Cues' tab
Set Normal to green and Upper and Lower to white, and fill in the right field name. (this only works if you select 1 value)
Yes, I know where to set a background color expression, the problem is to find a correct expression.
And I want to be able to have many dates selected.
So as soon as some random dates are selected (through an other object), I want the selected dates background to turn green on the pivot table.
And the expression I wrote previously doesn't even exist. It was just to give an idea of what I want.
click on + before expression
see the attached file
hope this help
Test.qvw 138.8 K
First I made a calender (Year, month, week, weekday, etc) bases on a date field.
Select 1 year in and rightt click the year field to check "Always One selected Value"
Then I used Weeknumber and WeekDay in a pivot table (like your example)
And used the following expression :
With the following background color forumla:
=IF (IsNull(WeekDay),white(),If(count(datefield)=1, Green()))
And the following for the text formula
=IF (IsNull(WeekDay),white(), If(count(datefield)=1, Green()))
Set the pivot table to "Show all Values" (Dimension tab) and uncheck "Supress zero values"(Presentation tab).
This way not only will the selection on your datefield show in your calender, it will also show any calender connected seletions (Week, Month, ect)
Let me know if this is what you are looking for, ok?
that's exactly what I wanted, and with a little modification, it works perfect.
I don't think the expression:
is useful. It doesn't make any sens for me and when I put it in a textbox it doesn't show any result (maybe I'm missing something). But anyway, it works fine without it.
Then if I want your process to function, I have to change the end of expression for background color and text color and add a superior sign:
=IF (IsNull(weekday),white(),If(count(Datefield)>=1, Green()))
Then it works well.