Forum Discussion
Accuracy % for monthwise
Hi Everyone,
I am trying to get the month-wise accuracy % for my team.
I have tried the below simple DAX code:
1-(DIVIDE([mCount_Error],[mCount_shoppingCart],"NA"))
It is showing the correct data however while putting it in graph/table, it is showing 100% for the future months as well(which we did do any audit).
| MonthName | m%Accuracy |
| Jan'22 | 75% |
| Feb'22 | 100% |
| Mar'22 | 100% |
| Apr'22 | 100% |
| May'22 | 100% |
| Jun'22 | 100% |
| Jul'22 | 100% |
| Aug'22 | 100% |
| Sep'22 | 100% |
| Oct'22 | 100% |
| Nov'22 | 100% |
| Dec'22 | 100% |
If I remove the 1 from the formula"=DIVIDE([mCount_Error],[mCount_shoppingCart],"NA")", it is showing me the Error % for the particular month only.
PS: I am using the calendar table.
Please let me know if we have any workarounds.
Thanks
S
Switto you can wrap it around the if conditions:
IF ( NOT ISBLANK ( [mCount_Error] ) && NOT ISBLANK ( [mCount_shoppingCart] ), 1-(DIVIDE([mCount_Error],[mCount_shoppingCart],"NA")) )✨ Follow us on LinkedIn and to our YouTube channel
Check my latest video on Filters and Sparklines https://youtu.be/wmwcX8HvNxc
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
1 Reply
- parry2kSuper User
Switto you can wrap it around the if conditions:
IF ( NOT ISBLANK ( [mCount_Error] ) && NOT ISBLANK ( [mCount_shoppingCart] ), 1-(DIVIDE([mCount_Error],[mCount_shoppingCart],"NA")) )✨ Follow us on LinkedIn and to our YouTube channel
Check my latest video on Filters and Sparklines https://youtu.be/wmwcX8HvNxc
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.