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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Incident Data

I have a spreadsheet with incident data (one incident per row). Information captured on each row includes the location of the incident and the type of incident. 

 

At the moment, the PowerBI report I create from this spreadsheet counts each type of incident and how many per hotel etc.

 

HOWEVER 

 

each location has different capacities therefore a particular location with lots of incidents may just look higher because the capacity is higher to begin with.

 

I am able to obtain the capacity numbers per location.

 

My question is, how would I go about capturing this data so the PowerBI report shows some sort of ratio/percentage/average based on the capacity and the incident numbers?

 

Could I do this within PowerBI or would I have to create another spreadsheet and if so, what's the best way to do this? 

 

As the incident spreadsheet is being updated daily, I ideally wanted the report to feed from this so I can just refresh and won't have to extract data every week or so.

 

Hope the above makes sense and any help would be great 🙂 

 

Thanks

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous The best approach would be to have another table with location and the capacity and set relationship between your daily incident table wth this new table to calculate the %

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
Rujohn
Regular Visitor

Hi,

 

I am new here. I need help.

 

IF(Incident[Age of Incident]<7,COUNT(Incident[Incident Number]))
 
^^above is fine (no errors when I saved). this is to calculate the age LESSER THAN 7.
 
How do I write below?
 
Age is GREATER THAN 7 BUT IS LESSER THAN 14?
 
 

Strange bump, but try this:

 

IF(Incident[Age of Incident]<14&&Incident[Age of Incident]>7,COUNT(Incident[Incident Number]))

thank you sir. It worked! you're the best!
parry2k
Super User
Super User

@Anonymous The best approach would be to have another table with location and the capacity and set relationship between your daily incident table wth this new table to calculate the %

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.