Forum Discussion
francesg
3 years agoHelper I
Multiple Slicer value with 2 condition
Hi Everyone,
I need help in DAX; my goal is:
1. when the user selects the Type slicer = "Backlog" and "Sales", the result is 0
2. when the user selects the Type slicer only "Backlog" or "Sales", the result is 0
3. when the user did not select any value in the slicer should show the "Amount" > ('table.amount")
My current dax which is not working, is:
Backlog Forecast =
VAR vtype =
SELECTEDVALUE('Forecast Inclusions'[Type])
RETURN
SWITCH(
TRUE(),
vtype = "Backlog", 0,
vtype = "Sales", 0,
vtype = "Backlog" || "Sales", 0,
vtype = "", ('All Measures'[Backlog Amount])
)
Appreciate anybody's help. Thank you
Thank you it works 🙂
4 Replies
- francesgHelper I
Thank you it works 🙂
- francesgHelper I
Hi FreemanZ,
Yes, this is the table we set for all measures. Created in SSAS/cube.
Thanks
- PadycosmosSolution Sage
You may try this:
Backlog Forecast =VAR vtype =SELECTEDVALUE('Forecast Inclusions'[Type])RETURNSWITCH(TRUE(),vtype = "Backlog", 0,vtype = "Sales", 0,vtype = "Backlog" || "Sales", 0,'All Measures'[Backlog Amount])