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
Ghost_Of_Casper
Frequent Visitor

Showing percentage of affected devices each day

Hello,

 

I'm looking for assistance with building a report in PowerBI where i can show the percentage of known devices that have an active case each day. I have a list with the devices and issue open/close dates, A refence table of all the known devices and a standard DimDate table that is related to the issue list open date, 

This should be possible as i can easily do this in Excel with minimal effort but i'm banging my head here when trying to do this in Power BI. Any assitance would be helpful

For refernce my tables are as such examples

DeviceCount
Unit Type 115
Unit Type 26
Unit Type 345
Unit Type 43

 

Issue #OpenedClosedDevice
14/6/20234/8/2023Unit Type 2
24/6/20234/9/2023Unit Type 3
34/10/20234/10/2023Unit Type 2
44/11/20234/13/2023Unit Type 4
54/30/20235/3/2023Unti Type1
64/30/20235/2/2023Unit Type 1
74/30/2023 Unti Type 4

 

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

Based on that 2 data tables that you have shared, show the exact result you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

add a disconnected dates table and a couple of measures to compute the impacted issues for each date.

 

lbendlin_0-1685840684356.png

see attached

 

 

Thank you Ibendlin, This has helped immesly, but when I increase the data size I do run into an issue where I need to only count duplicates once per day, Is there an adjustment that needs to be made to the DAX that would accomidate this?

Example is when there are reports for the same issue in the same day I would like to only count it as one and not count each instance. the data size increase includes a location so it would look simmilar to this

 

Issue #OpenedClosedDeviceLocation
14/6/20234/8/2023Unit Type 2Room a
24/6/20234/9/2023Unit Type 3Room b
34/10/20234/10/2023Unit Type 4Room a
44/10/20234/13/2023Unit Type 4Room a
54/10/20234/13/2023Unit Type 1Room a
64/12/20235/2/2023Unit Type 1Room c
74/30/20235/4/2023 Unit Type 4Room b
85/1/20235/1/2023Unit Type 2Room a
95/1/20235/5/2023Unit Type 2Room a



I don't see any duplicates in that new sample data?

The example dupllicates are #3&4 and #8&9 it can be seen that for #3 it was opened and closed the same day while #4 was the same room and issue opened the same day that #3 was (later in the day) but closed out later, simmilar with the second set.

 

What would be the best way to account for the issue only being counted once for that type of occurance?

What is the expected outcome?  drop 3 and 8 ?

the short of it yes, would be to drop those from the % affected, but keep thier counts in # of incidents

 

Sorry but that's too convoluted.  I think my original proposal has a higher level of truthiness.

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.