Forum Discussion

magnify-bi-com's avatar
4 years ago
Solved

SWITCH FUNCTION not working for certain visuals for "Total Hours (Previous 30 Days)"

Hey,   I have a SWITCH fucntion that is working for everything but "Total Hours (Previous 30 Days)", I'm presuming this is due to the way I've written the DAX for this measure as opposed to the oth...
  • amitchandak's avatar
    4 years ago

    magnify-bi-com , Try like this

     

    Rolling 30 = CALCULATE([Total Hours],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-30,DAY))