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
pwalker2022
Frequent Visitor

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;

pwalker2022_1-1659132386169.png

 

Am I doing something wrong?

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @pwalker2022 ,

 

Please create a Calendar table and the relationship.

 

vkkfmsft_1-1659426066808.png

 

Then create the measure.

 

Rolling AVG = 
CALCULATE (
    AVERAGE ( 'Table'[Count] ),
    DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Table'[Date] ), -7, DAY )
)

vkkfmsft_0-1659426052457.png

 

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.

View solution in original post

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @pwalker2022 ,

 

Please create a Calendar table and the relationship.

 

vkkfmsft_1-1659426066808.png

 

Then create the measure.

 

Rolling AVG = 
CALCULATE (
    AVERAGE ( 'Table'[Count] ),
    DATESINPERIOD ( 'Calendar'[Date], MAX ( 'Table'[Date] ), -7, DAY )
)

vkkfmsft_0-1659426052457.png

 

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.

lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue.

Hello,

 

My apologies - below is a screenshot of sanitized data as well as another screenshot of how the data appears in a CSV;

pwalker2022_0-1659363667092.png

 

pwalker2022_1-1659363964594.png

 

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

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.