The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I'm using this to format millions: FORMAT([TotalCost Budget]),"#,##,,.0M")
But when it is less than 1 million I get .5M and I would like to get 0.5M.
Can anybody tell me how should the format string look like?
BR
Lotte
Solved! Go to Solution.
I've found out 😊
FORMAT([TotalCost Budget]),"#,#0,,.0M")
I've found out 😊
FORMAT([TotalCost Budget]),"#,#0,,.0M")
@LotteLaugesen , You need try something like this. That will measure as text
SWITCH ( TRUE() ,
[M1] >= 1000000000 , CONCATENATE("$", FORMAT ([M1]/1000000000, "#,###.0") & "bn") ,
[M1] >= 1000000, CONCATENATE("$", FORMAT (COALESCE([M1], 0)/1000000, "#,###.0" )& "M") ,
[M1] >= 1000, CONCATENATE("$", FORMAT (COALESCE([M1], 0)/1000000, "#,###.0" )& "K") ,
CONCATENATE("$", FORMAT (COALESCE([M1], 0) , "#,###.0")
))
Thank you, @amitchandak
But can't I just change the format string in a way so I get the zero? 0.5M instead of .5M
FORMAT([TotalCost Budget]),"#,##,,.0M")
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |