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.
Hi,
Please refer the below table as a sample dataset for my query:
Device | Status | DateTime |
A | Healthy | 10/21/2020 8:56:00 PM |
A | Fault1 | 10/20/2020 6:24:00 PM |
A | Fault2 | 10/21/2020 2:50:00 PM |
A | Fault3 | 10/21/2020 3:47:00 PM |
A | Healthy | 10/21/2020 4:56:00 PM |
B | Healthy | 10/21/2020 2:16:00 PM |
B | Healthy | 10/20/2020 4:56:00 PM |
B | Fault2 | 10/20/2020 6:15:00 PM |
B | Fault3 | 10/21/2020 3:12:00 PM |
B | Healthy | 10/20/2020 8:03:00 PM |
In the above table, device A has more faults than healthy status and device B has more healthy status than faults in the last 24 hours.
I want to create a measure on this which can let me know which device's status was more than 30% of faults in the last 24 hours. Also, I need to present this on the visual like "Device A has more than 50% of faults in the last 24 hours", so how to derive this measure and how to present on the visual as mentioned.
Thanks
Thanks
Hi, @jitpbi , you might want to try this; a file is attached for your reference.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Hi @CNENFRNL ,
I can see Fault % for Device A is 60% and for Device B is 40% if we refer the SysLog table. Also, I need to show it like below:
"Device A is having 60% faults"
Thanks
@jitpbi , I didn't quite catch you; but I break down my idea to you,
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |