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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
mithun41
Regular Visitor

Rolling average of count of category

Rolling average of count
26m ago
Issue createdCategoryissues 
01-02-2022Customertitle1 
01-02-2022Internaltitle2 
04-02-20322Customeer title3  

 

I have table like this above, I need to calcualte the rolling average of last 12 weeks of Percentage of Customer issues / vs total issues(Customer+Internal). Can anybody help with calcuation of the measure  . I tried this 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mithun41 ,

 

Here's my solution.

You could create a measure for this.

Measure = var _count=CALCULATE(COUNT('Table'[Category]),FILTER(ALLSELECTED('Table'),[Category]="Customer"&&[Issue created]>MAX('Table'[Issue created])-12*7&&[Issue created]<=MAX('Table'[Issue created])))
var _all=CALCULATE(COUNT('Table'[Category]),FILTER(ALLSELECTED('Table'),[Issue created]>MAX('Table'[Issue created])-12*7&&[Issue created]<=MAX('Table'[Issue created])))
return DIVIDE(_count,_all)

vstephenmsft_0-1683083340126.png

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @mithun41 ,

 

Here's my solution.

You could create a measure for this.

Measure = var _count=CALCULATE(COUNT('Table'[Category]),FILTER(ALLSELECTED('Table'),[Category]="Customer"&&[Issue created]>MAX('Table'[Issue created])-12*7&&[Issue created]<=MAX('Table'[Issue created])))
var _all=CALCULATE(COUNT('Table'[Category]),FILTER(ALLSELECTED('Table'),[Issue created]>MAX('Table'[Issue created])-12*7&&[Issue created]<=MAX('Table'[Issue created])))
return DIVIDE(_count,_all)

vstephenmsft_0-1683083340126.png

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

mithun41
Regular Visitor

mithun41
Regular Visitor

Any help ?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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