The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
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.
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.
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
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |