Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Subtract/deselect end/max month

Hi

I have this simple code:

=if(sum({$}Month), LightRed(), lightgray())

The only thing I need is to say minus one Month, that is the last one. So if I choose "Jan, Feb and Mar", I need it too remove Mar. If I choose "Jun, Jul", I need it to only use Jun and so forth.  

21 Replies
Not applicable
Author

Well I could not make this part work, with two dimensions I could make it work, bot with just this alone, I get a problem: It only shows selected month at the axis then, placing ( {<Month_Integer=>}Value) in front does not work, it deactivates the second expression.


Also with the two dimensions so I can see all months on the axis, but the colour for the deselected suddenly does not work.


?

      

Not applicable
Author

Daniel, sorry I think I got this one wrong, actually seems pretty simple if it works, where do you put the "num(month(date#('jan','MMM'))" code?