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.
trying to "if" isblank , i want in case a value of a field is null then new column should be 1 else it should be 0
i've dont it like that :
Solved! Go to Solution.
Hi @dudu55 ,
Here you use isblank to create a calculated column in 'Dudu_bi' table. Please check whether 'Dudu_bi' table has datetime 2020/04/07 13:46:53. I think your problem should be caused that there is no datetime 2020/04/07 13:46:53 in 'Dudu_bi'. So this calculated column will return blank when you add it in visual.
I suggest you to try to create a measure.
counterror = IF(ISBLANK(MAX(Dudu_bi[WEIGHTDIFF])),1,0)
You see left one is a calculated column by your code. I will get the same result like you. Right one is my measure, it works well.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dudu55 ,
Here you use isblank to create a calculated column in 'Dudu_bi' table. Please check whether 'Dudu_bi' table has datetime 2020/04/07 13:46:53. I think your problem should be caused that there is no datetime 2020/04/07 13:46:53 in 'Dudu_bi'. So this calculated column will return blank when you add it in visual.
I suggest you to try to create a measure.
counterror = IF(ISBLANK(MAX(Dudu_bi[WEIGHTDIFF])),1,0)
You see left one is a calculated column by your code. I will get the same result like you. Right one is my measure, it works well.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@dudu55 , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
This formula is correct
counterror = IF(ISBLANK(Dudu_bi[WEIGHTDIFF]),1,0)
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 |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |