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,
At first i had a simple divide to work out the % of cosistency ([Number of Consistent]/[Num Overscore]) however it wasnt accurate for ones that have 0% so i used an if formula if([Number of Consistent]/[Num Overscore]),([Number of Consistent]/[Num Overscore]),0). This would put 0% if for the values even if they had blank in them so ive tried adding an ifblank formula in but im having some trouble.
% Consistent = if(ISBLANK([Number of Consistent]/[Num Overscore],BLANK(),IF([Number of Consistent]/[Num Overscore],[Number of Consistent]/[Num Overscore],0)))
Any help is appreciated.
Solved! Go to Solution.
If your problem is a divide by zero issue the use divide function instead of "/"
instead of [Number of Consistent]/[Num Overscore] use
Proud to be a Super User!
Hi @Anonymous ,
Instead of a/b, use DIVIDE() in dax. Here , you can pass alternate value.
https://docs.microsoft.com/en-us/dax/divide-function-dax
In order to deal with blank values, use blank() with IF().
Do some workaround, It will easily solve your existing DAX calculation.
Thanks,
Amit
If your problem is a divide by zero issue the use divide function instead of "/"
instead of [Number of Consistent]/[Num Overscore] use
Proud to be a Super User!
If your problem is a divide by zero issue the use divide function instead of "/"
instead of [Number of Consistent]/[Num Overscore] use
Proud to be a Super User!
If your problem is a divide by zero issue the use divide function instead of "/"
instead of [Number of Consistent]/[Num Overscore] use
Proud to be a Super User!
a little unsure on your issue is it a divide by zero issue or a replace value 0 with diffrent value
if your having a divide by zero isue for example 100/0 = error then use divide function instead of [Number of Consistent]/[Num Overscore]
Proud to be a Super User!
a little unclear as to what your issue is with this one.
are you having a divide by Zero error - if so instead of using [Number of Consistent]/[Num Overscore]
use a divide as this will handle the divide by zero issue and allow you to simply defult to 0%
Proud to be a Super User!
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |