Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello All,
I am just trying to check whethe a column value having blank of zeros by below measure and show the message as data not available if any blank or zeros are there.
Sample table
But when i have written condition like the below measure it given me values in all decimals.
AttriCheck = IF(Attrition[Attri%]=BLANK() || Attrition[Attri%]<=0,"Data Not Available",Attrition[Attri%])
Output
Here the values are all in decimals and which are wrong also(Jan-2017 value).
Can anyone suggest me why is this happening in percentage values as it is perfectly works in all other types like decimals and whole number.
Thanks,
Mohan V
Solved! Go to Solution.
Since the result of your measure always needs to be the same type (string in your case, since you have the error message), I would just use FORMAT to fixup your decimals.
Something like:
AttriCheck = IF(Attrition[Attri%]=BLANK() || Attrition[Attri%]<=0,"Data Not Available", FORMAT(Attrition[Attri%], "0.00%"))
Since the result of your measure always needs to be the same type (string in your case, since you have the error message), I would just use FORMAT to fixup your decimals.
Something like:
AttriCheck = IF(Attrition[Attri%]=BLANK() || Attrition[Attri%]<=0,"Data Not Available", FORMAT(Attrition[Attri%], "0.00%"))
Wow @Anonymous that was quick and perfect...
Kudos..
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!