Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
swwong1
Helper III
Helper III

Concatenate Measures for Data Labels in Tree Map

Hi All

 

I have used the RANKX function to find the top 10 clients in a tree map but instead of the default data labels such as showing client name and revenue; I would like to show the client and then the % of top 10 revenue for that client.

 

Eg. For Client F, instead of showing 'F $897'; I was hoping to see 'F (17%)'

 

https://www.dropbox.com/s/fjt415in3cgzqy4/RANKX.pbix?dl=0 

 

Many thanks for your help

 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @swwong1 

I guess I got the result you want. Please check the result below.

In the following result, I didn't make any changes to your source file. I just tried to change the displayed fields and settings in the properties

v-angzheng-msft_0-1620613761011.pngv-angzheng-msft_1-1620613778019.png

v-angzheng-msft_2-1620613799277.png

Please refer to the attachment below for details

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-angzheng-msft
Community Support
Community Support

Hi, @swwong1 

I guess I got the result you want. Please check the result below.

In the following result, I didn't make any changes to your source file. I just tried to change the displayed fields and settings in the properties

v-angzheng-msft_0-1620613761011.pngv-angzheng-msft_1-1620613778019.png

v-angzheng-msft_2-1620613799277.png

Please refer to the attachment below for details

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-angzheng-msft 

 

Thanks for this. I guess I was too focused on making sure the box size is proportional to the 'revenue'. However, the % would also make the size be proportional too!

swwong1
Helper III
Helper III

@v-angzheng-msft 

 

Thanks for the above. I have looked into this and used COMBINEVALUES to join them together but as it was a measure, I couldn't add this to 'details' in the tree map.

 

In your solution, you have joined them through calculated columns but if you look at the % it is slightly different as I have 12 clients in total (but tree map only shows top 10). The calculated column isn't taking into account the filter context so it is showing the % of all 12 clients, instead of % of top 10 clients.

v-angzheng-msft
Community Support
Community Support

Hi, @swwong1 

 

Try to create a calculate column to concatenate Measures

_Concatenate column =
CONCATENATE (
    'DATA'[Client],
    "(" & FORMAT ( 'DATA'[% of Selected], "Percent" ) & ")"
)

Sample:

v-angzheng-msft_0-1620296425565.jpeg

I changed your fields like this:

v-angzheng-msft_1-1620296425568.jpeg

Result:

v-angzheng-msft_2-1620296425571.jpeg

Please refer to the attachment below for details

 

 

Is this the result you want? Hope this is useful to you

Please feel free to let me know If you have further questions

 

Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.