Forum Discussion
powerbiexpert22
Impactful Individual
28 days agoData Labels and Y Axis - Dynamic Format String
i am using dynamic string for measures in my below shown bar chart, i am using below measure as example , i want to how data labels and Y axis values in thousands or millions with two decimal places ...
- 27 days ago
you can try this
VAR SelectedMeasure = ABS([Measure]) RETURN SWITCH( TRUE(), SelectedMeasure < 1000, "#,0", SelectedMeasure < 1000000, "#,0,.0""K""", SelectedMeasure < 1000000000, "#,0,,.0""M""", "#,0,,,.0""B""" )pls see the attachment below
ryan_mayu
Super User
27 days agoyou can try this
VAR SelectedMeasure = ABS([Measure])
RETURN
SWITCH(
TRUE(),
SelectedMeasure < 1000,
"#,0",
SelectedMeasure < 1000000,
"#,0,.0""K""",
SelectedMeasure < 1000000000,
"#,0,,.0""M""",
"#,0,,,.0""B"""
)
pls see the attachment below