Forum Discussion
Anonymous
3 years agoNot applicable
Dynamic format for measure on column/bar chart
I've been trying to set dynamic format for measure on bar/column chart, but when data labels' display units is set to "none", Power BI ignores my dynamic format UNLESS I set decimal places to > 0 – t...
lbendlin
Super User
3 years ago
SWITCH(
TRUE(),
SELECTEDMEASURE() < 1000, "#",
SELECTEDMEASURE() < 1000000, "#,##0,.0 K",
SELECTEDMEASURE() < 1000000000, "#,##0,,.0 M",
"#,##0,,,.0 B"
)
this should get you closer. Still has one decimal, but I'm sure they will address this bug soon: Dynamic Format Strings Bug - Microsoft Power BI Community
Anonymous
3 years agoNot applicable
I know it is a bug, that is why I originally posted this in the "Issues" forum, but somebody moved it here, without any notice.
I also know adding one decimal place helps (as I mentioned in my first post), but I would like to be able to set a dynamic format to 0 decimal places and use it on bar/column chart. As for now it's just not possible.
Nevertheless, thank you for trying to help, much appreciated.