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.
Hello, PowerBI Guru , I have a table as below, I would like to make a DAX to calculate how many component’s pass ratio ([Pass Test]/[Total Amount]) is more than 95%. I need to get the result per YEAR, YEAR MONTH. Thanks in advance !
Component | Test Date | Total Amount | Pass Test |
A | 25/11/2019 | 100 | 99 |
B | 27/11/2019 | 200 | 198 |
A | 14/12/2019 | 120 | 116 |
B | 15/12/2019 | 100 | 97 |
C | 16/12/2019 | 150 | 120 |
Solved! Go to Solution.
Hello
You can download my PBI file from here.
I hope this helps.
Hi @pigip ,
Create measures and visual as below.
percentage = SUM('Table'[Pass Test])/SUM('Table'[Total Amount])
pass95 = CALCULATE(DISTINCTCOUNT('Table'[Component]),FILTER('Table',[percentage]>0.95))
Best Regards,
Jay
Big thanks ! It also works very well !
Hello
You can download my PBI file from here.
I hope this helps.
Thanks for prompt response. It works
HI @pigip
I have created three columns as below.
and use these columns for the visual
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |