Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hey guys,
could you please help me with the following Measure?
I would like to show the "number of services with major incident" per Business Unit nin a way, that if a service had multiple major incidents it should still be counted 1 time (as it is the same service).
I have currently the following formula for the measure: - the filter part is linked to a slicer, that can be changed to any time interval.
Solved! Go to Solution.
@Anonymous,
Please change your DAX to the following:
Number of Services with Major Incident = CALCULATE(DISTINCTCOUNT('Incident Report'[Title]),FILTER('Incident Report','Incident Report'[ASPStatusID]=1), FILTER('Incident Report',(CALCULATE(MIN('Incident Report'[Incident Start Date]))>=CALCULATE(MIN('CALENDAR'[Date])) && CALCULATE(MAX('Incident Report'[Incident Start Date]))<=CALCULATE(MAX('CALENDAR'[Date])+1)||CALCULATE(MIN('Incident Report'[Incident End Date]))>=CALCULATE(MIN('CALENDAR'[Date])) && CALCULATE(MAX('Incident Report'[Incident End Date]))<=CALCULATE(MAX('CALENDAR'[Date])+1))) ) + 0
Moreover, please mask your sensitive information such as account name and password when uploading your screenshots.
Regards,
Lydia
@Anonymous,
Please change your DAX to the following:
Number of Services with Major Incident = CALCULATE(DISTINCTCOUNT('Incident Report'[Title]),FILTER('Incident Report','Incident Report'[ASPStatusID]=1), FILTER('Incident Report',(CALCULATE(MIN('Incident Report'[Incident Start Date]))>=CALCULATE(MIN('CALENDAR'[Date])) && CALCULATE(MAX('Incident Report'[Incident Start Date]))<=CALCULATE(MAX('CALENDAR'[Date])+1)||CALCULATE(MIN('Incident Report'[Incident End Date]))>=CALCULATE(MIN('CALENDAR'[Date])) && CALCULATE(MAX('Incident Report'[Incident End Date]))<=CALCULATE(MAX('CALENDAR'[Date])+1))) ) + 0
Moreover, please mask your sensitive information such as account name and password when uploading your screenshots.
Regards,
Lydia
Hey @v-yuezhe-msft,
many thanks for your fast reply!
Could you please help me with 1 last issue? would it be possible to extend the "number of services with major incident" to "number of services with incident"?
So it counts also if a service has an incident that is either major/critical = ASPStatusID1 or ASPStatusID2?
Currently it's counting the ones, where ASPStatusID=2.
I would really appreciate!
Many thanks,
Adam
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
54 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
46 |