Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi All,
I am trying to create a custom tooltip for a table and matrix visual.
My table is like this.
Department | Employee | Percentage |
Dept-A | Emp-1 | 50% |
Dept-A | Emp-2 | 100% |
Dept-A | Emp-3 | 100% |
Dept-A | Emp-4 | 100% |
Dept-B | Emp-5 | 100% |
Dept-B | Emp-6 | 100% |
Dept-B | Emp-1 | 50% |
Dept-B | Emp-7 | 100% |
Dept-B | Emp-8 | 100% |
Dept-B | Emp-9 | 100% |
Dept-B | Emp-10 | 100% |
I want to create a measure for the tooltip to display distinct values of percentages, separated by a ",". So it should show "Percentage = 50%,50%", when I hover over the first row and in the second row "Percentage = 100%".
I wrote this DAX but it didn't work:
Solved! Go to Solution.
@MURTAZA , both values are .5
You can try like
Tooltip =
CALCULATE(
CONCATENATEX(
SUMMARIZE(Sheet1,Sheet1[Employee],
Sheet1[Percentage]),[Percentage]
),
ALLEXCEPT(Sheet1,Sheet1[Employee])
)
Hi @amitchandak
Thank you for the response, but it is not working.
I have created a sample .pbix file attached, if you could look into it, please. Thanks
https://drive.google.com/file/d/1klhlx03gz55ti99xCygZUUve9QOj0u6p/view?usp=sharing
@MURTAZA , both values are .5
You can try like
Tooltip =
CALCULATE(
CONCATENATEX(
SUMMARIZE(Sheet1,Sheet1[Employee],
Sheet1[Percentage]),[Percentage]
),
ALLEXCEPT(Sheet1,Sheet1[Employee])
)
@amitchandak
My apologies that I forgot to mention 1 important aspect of my data is that I have created a unique ID column that I am using, instead of the employee ID (this is because of the limitation Matrix visual has of aggregating data. The duplicated employee IDs, within a department, were aggregated to show as 1, so I had to create a unique ID. This formula is not working in this scenario now, which is understandable, as it is unable to find distinct values. Can you help and advise on this please?
Tooltip =
CALCULATE(
CONCATENATEX(
SUMMARIZE(
Sheet1,
Sheet1[Unique ID],
Sheet1[Percentage]
),
[Percentage]
,", "),
ALLEXCEPT(Sheet1,Sheet1[Unique ID]
) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |