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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Ivo_T
Regular Visitor

12 month avg rolling not for SALES

Hi ,

I am trying to figure out measure for my task - 12 months rolling average for Incidents.
I have column with unique Incidents numbers and I can not use SUM , I can only Count them.

This measure is not working correctly for this task:

Calculate (
COUNT(FACT_INCIDENT[INCIDENT_NO]),DATESINPERIOD(FACT_INCIDENT[OP_DATE], LASTDATE(FACT_INCIDENT[OP_DATE]), 1, YEAR))
/
CALCULATE(DISTINCTCOUNT(FACT_INCIDENT[OP_DATE]), DATESINPERIOD(FACT_INCIDENT[OP_DATE], LASTDATE(FACT_INCIDENT[OP_DATE]), 1, YEAR))

 

 

Could you please help how to make it right . Sadly, but most of sources are in relation to Sales which you can easily SUM and I can not use - my data comes from Data Warehouse and can expect any changes from it

Many thanks - Iwona

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @Ivo_T 

Could you please consider sharing more details about it and posting expected result so it is clear on what needs to be implemented?  And It would be great if there is a sample file without any sesentive information here.

It makes it easier to give you a solution.

  1. Sample (dummy dataset) data as text, use the table tool in the editing bar
  2. Expected output from sample data
  3. Explanation in words of how to get from 1. to 2.

 

 

Best Regards,
Community Support Team _ Zeon Zheng

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. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.