The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
)
Proud to be a Super User! | |
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
)
Proud to be a Super User! | |