Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Hi @phuonganhtdinh ,
We can also change the measure as following to meet your requirement:
Update formula: consider it may have negative value, we use "@" as a temp char instead of previous "-"
Sales measure for card =
IF (
ISFILTERED ( Dim_Date ),
VAR sales =
FORMAT ( ( [Sales] / 1000000000 ), "#,#.## \billion\V\N\D;" )
RETURN
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( sales, ".", "@" ), ",", "." ), "@", "," ) & " ",
"Year not selected"
)
By the way, PBIX file as attached.
Best regards,
Try "Standard" format. Although this format is not visible in the list by default, you can still overwrite it as the display format.
For integers use custom format #,0.
Hi @phuonganhtdinh ,
We can also change the measure as following to meet your requirement:
Update formula: consider it may have negative value, we use "@" as a temp char instead of previous "-"
Sales measure for card =
IF (
ISFILTERED ( Dim_Date ),
VAR sales =
FORMAT ( ( [Sales] / 1000000000 ), "#,#.## \billion\V\N\D;" )
RETURN
SUBSTITUTE ( SUBSTITUTE ( SUBSTITUTE ( sales, ".", "@" ), ",", "." ), "@", "," ) & " ",
"Year not selected"
)
By the way, PBIX file as attached.
Best regards,
Great answer @v-lid-msft
I've been searching for this solution for a while. It is a witty one. Thanks for sharing 😉
Check out this video
Documentation: https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |