Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Measure with IF statement in DATE

I am new to this community and looking for help with a measure having IF statement using dates. I have fiscal year to date Operating Revenue, but I would like to calculate monthly operating revenue,...
  • YukiK's avatar
    4 years ago

    You can use a measure like this:

    Monthly Operating Revenue =
    VAR __SelectedMonth = SELECTEDVALUE( DateDim[Month] )
    VAR __MonthlyOperRev = 
    IF ( __SelectedMonth  = "January", "Whatever you want in case of January", [Total Operating Revenue]-[Monthly Operating Revenue],   )
    RETURN
    __MonthlyOperRev 

     

    Please give it a thumbs up if this helps!