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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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