Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
I am trying to write a SWITCH dax that allows me to filter a table of dates whenever I have "Previous Period" selected on a slicer.
I have a date column, and a measure:
Thanks in advance!!
Solved! Go to Solution.
Consider the following single measure:
Measure =
VAR _Current = Your calculation
VAR _Previous = Your calculation
RETURN
SWITCH (
SELECTEDVALUE ( 'Compare date Slicer'[Slicer Selection] ),
"Current Period", _Current,
"Previous Period", _Previous,
0
)
Consider the following single measure:
Measure =
VAR _Current = Your calculation
VAR _Previous = Your calculation
RETURN
SWITCH (
SELECTEDVALUE ( 'Compare date Slicer'[Slicer Selection] ),
"Current Period", _Current,
"Previous Period", _Previous,
0
)
User | Count |
---|---|
94 | |
83 | |
78 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
60 |