Forum Discussion

KellyM82's avatar
KellyM82
New Member
3 years ago

Help with DAX - Potential nested IF

Having exhausted all my google skills and after reading multiple different similar scenarios and having no joy, I thought I'd ask myself!

 

I'd like to create a measure that will determine what the status of a row within my data is by the date. Here is a sample of the data:

 

 

I thought perhaps I could use a measure with a nested IF statement to determine the appropriate date column and then return the attached status but I couldn't get it to work. In essence I'd like to be able to say "as at today I have x U status, y C status etc for the period 2022/23, on this day last year I had a U status, b C status etc for the period 2021/22". Hopefully that makes sense!

1 Reply