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.
I have both whole number and decimal values in single column . I want to display as it is (whole number should display same and decimal number should display two decimal places) . But by default it displays always two decimal places even if it is whole number . How do I acheive it ?
Please update any one knows.
Solved! Go to Solution.
You could potentially do something like:
Measure 3 = IF(MOD(SUM(Budgets[Value]),2)=0,FORMAT(SUM(Budgets[Value]),"#####"),FORMAT(SUM(Budgets[Value]),"####.##"))
You could potentially do something like:
Measure 3 = IF(MOD(SUM(Budgets[Value]),2)=0,FORMAT(SUM(Budgets[Value]),"#####"),FORMAT(SUM(Budgets[Value]),"####.##"))
This has work great thank you!
Only issue I have is that is is leaving some of the whole numbers with a decimal point and nothing after it, but not all, see image below. These are whole numbers so a little strange any thoughts?
Works great for the decimal place. Logic is identical to above though have reduced to a single decimal point, though issue occured with 2.
I have got around this issue by adjusting the DAX: