Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Your file has been submitted successfully. We’re processing it now - please check back in a few minutes to view your report.
This can be used after selecting the "Dynamic" as the measure format under "Measure tools"
VAR CurrentValue = SELECTEDMEASURE()
RETURN
SWITCH (
TRUE (),
// format the number based on value
CurrentValue <= -1E6, "#,0,,.00 M",
CurrentValue <= -1E3, "#,0,.00 K",
CurrentValue <= 1E3, "#,0.00",
CurrentValue < 1E6, "#,0,.00 K",
CurrentValue < 1E9, "#,0,,.00 M",
CurrentValue < 1E12, "#,0,,,.00 B"
)I