Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Katalo
Frequent Visitor

Calculating Moving Annual Total with filter

Hello!

Im quite new to Power BI and DAX, but om finding a lot of good information here:) But i have an obstical I cant find an answer to..

I have a set of interview data and im trying to create a moving annaual total of the respondents that answered eg. 4 or 5. I have the following measure: 

45 MAT = CALCULATE(
DISTINCTCOUNT(Respondent[RespondentID]);
DATESINPERIOD(Dates[date];LASTDATE(Dates[date]);-1;YEAR)
FILTER(Questions; Questions[Value] = 5 || Questions[Value] = 4)
)

When I split i up by month I only det the count respondents that answered 4 or 5 for that month. I seams like the date range does not work. Am I not getting the syntax right?

1 ACCEPTED SOLUTION
1 REPLY 1
Katalo
Frequent Visitor

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.