Forum Discussion
DAX help: switch selectedvalue not working
Hi, Winniethewinner ;
As Tamerj1 said, your first if() symbol is incorrect; You can modify it.
Secondly, all your if formulas are the same. Maybe you can try to simplify it.
Tickets_WOW_% =
IF (
AND (
Tickets_Measures[This Week] <> BLANK (),
Tickets_Measures[Last Week] <> BLANK ()
),
DIVIDE ( Tickets_Measures[This Week], Tickets_Measures[Last Week] ) - 1
)
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Winniethewinner4 years agoHelper IV
Thanks for the reply. I've changed the formula as you and tamerj1 suggested, however the WOW_% shows the $ instead %.
A bit more background, I used calculation group to switch the measures and its respective number format, where Rev shows $ format and count shows as decimal number format.
If I add FORMAT to Tickets_WOW_% formula and create a chart showing WOW% by dimension, the chart will not display. Any idea how to fix it? Thanks.
- tamerj14 years agoCommunity Champion
Adding FORMAT will change it into a string. You need to chsnge the format manually to %
- Winniethewinner4 years agoHelper IV
It doesn't work ☹️, and still shows as $.