Forum Discussion
Quick Measures Not Being Created
I am trying to create a quick measure on a count column where it calculates a 7 day running average for said count. I fill out all of the fields in the quick measure interface and when I select OK nothing happens.
I am able to create other quick measures just not this running average.
Below is a screenshot of the completed interface;
Am I doing something wrong?
Hi Anonymous ,
Please create a Calendar table and the relationship.
Then create the measure.
Rolling AVG = CALCULATE ( AVERAGE ( 'Table'[Count] ), DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Table'[Date] ), -7, DAY ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- lbendlin
Super User
Please provide sanitized sample data that fully covers your issue.
- AnonymousNot applicable
Hello,
My apologies - below is a screenshot of sanitized data as well as another screenshot of how the data appears in a CSV;
- lbendlin
Super User
Sorry for not being clear enough. Please provide sanitized sample data that fully covers your issue. I cannot help you without usable sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- v-kkf-msft
Community Support
Hi Anonymous ,
Please create a Calendar table and the relationship.
Then create the measure.
Rolling AVG = CALCULATE ( AVERAGE ( 'Table'[Count] ), DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Table'[Date] ), -7, DAY ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.