Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
How should we compare two columns containing null or 0 value.
Unable to properly do conditional formating after that
logic used : if column 2< column1,0,1)
Here we are comparing if 0.97< 0 ( if column2 < Column 1),column2 should be green but we are still getting red.
It should be green as 0.97 greater than 0
Solved! Go to Solution.
Hi @Suhil ,
It works on my device.
Column = IF([Column2]<[Column1],"red","green")
If possible, please provide more details about your sample data and expected results.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Suhil Try:
IF([Column2] < [Column1]+0, ...
Hi @Suhil ,
It works on my device.
Column = IF([Column2]<[Column1],"red","green")
If possible, please provide more details about your sample data and expected results.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you stephen.
I Have another query. Is it possible to add 4 differentcolumns in y -axis?