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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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