Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I am not able to use FORMAT to display an amount in millions with ONE decimal.
Displaying it with wero decimals works...
Solved! Go to Solution.
You can do some log math here. The format string depends on the number of digits in your actual data point. For example if your data value is 10000 then you need one comma. if the value is 100 then you need zero commas etc.
So - take the log10 of your value, subtract 6 if you are going for millions, integer (floor) divide it by three, and then add the resulting number of commas to your format string.
I found this solution: "#,##,,.0M"
You can do some log math here. The format string depends on the number of digits in your actual data point. For example if your data value is 10000 then you need one comma. if the value is 100 then you need zero commas etc.
So - take the log10 of your value, subtract 6 if you are going for millions, integer (floor) divide it by three, and then add the resulting number of commas to your format string.
User | Count |
---|---|
89 | |
85 | |
66 | |
62 | |
57 |
User | Count |
---|---|
138 | |
112 | |
94 | |
82 | |
71 |