Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi - I have a two questions regarding formatting of tooltips:
A tooltip apprears for a bar chart visualization everytime the user hovers over a specific bar. The tooltip displays field name and the value.
Questions:
1. How can you modify the tooltip to display another name instead of the actual field name (such as "Product Name" instead of "product_name") ?
2. The value being displayed in billions. How can display, for example, 1.23bn instead of 1230000000 ?
(example: "Sales: 1.23 bn" instead of "product_sales: 1230000000" ?
Note: I am using the verision of Power BI on the cloud (SAAS).
Any assistance would be appreciated. Jerry
Solved! Go to Solution.
Hi @jerryr125 ,
Here I suggest you to create a measure as below and then add it into Tooltips.
Format =
VAR _Toolips =
CALCULATE ( SUM ( 'Table'[Column1] ) )
RETURN
SWITCH (
TRUE (),
_Toolips >= 100000000,
_Toolips / 100000000 & " " & "bn",
_Toolips >= 1000000,
_Toolips / 1000000 & " " & "mn",
_Toolips >= 1000,
_Toolips / 1000 & " " & "th",
_Toolips
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jerryr125 ,
Here I suggest you to create a measure as below and then add it into Tooltips.
Format =
VAR _Toolips =
CALCULATE ( SUM ( 'Table'[Column1] ) )
RETURN
SWITCH (
TRUE (),
_Toolips >= 100000000,
_Toolips / 100000000 & " " & "bn",
_Toolips >= 1000000,
_Toolips / 1000000 & " " & "mn",
_Toolips >= 1000,
_Toolips / 1000 & " " & "th",
_Toolips
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |