Hi
In all my tables/graphs I only require MTD or YTD (linked to a slicer). I have successfully changed all my DAX using the below structure:
EBITDA =
VAR PeriodTableMTD = [Period Table Data] = “MTD”
VAR PeriodTableYTD = [Period Table Data] = “YTD”
RETURN
SWITCH (
TRUE (),
PeriodTableMTD, CALCULATE([IS] , Summary[Income Statement Items] = “EBITDA”) ,
PeriodTableYTD, CALCULATE([IS] , Summary[Income Statement Items] = “EBITDA” , DATESYTD(‘Date’[Month & Year] )))
The only formula I am struggling to modify is this one:
CY MTD =
VAR CURRENTITEM = TRIM(SELECTEDVALUE( 'Summary P&L template'[Income Statement Items]))
RETURN
CALCULATE( [IS] , FILTER(Summary , Summary[Income Statement Items] = CurrentItem))
Tried using the same format as the above EBITDA DAX, with no success.
Any recommendations?