The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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! | |