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

Don'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.

Reply
frankGB
Frequent Visitor

Visual with 1 column where Row Height is defined based on a metric value

Hi,

 

I have a table with a list of events (text) that are associated with a time field and a time index. See example below.

 

Main Table to be visualized

EventTimeTime Index
Event 106:001
Event 106:152
Event 106:303
Event 106:454
Event 107:005
Event 207:156
Event 207:307
Event 207:458
Event 308:009
Event 308:1510
Event 308:3011
Event 308:4512
Event 309:0013
Event 309:1514
Event 309:3015
Event 309:4516
Event 310:0017
Event 310:1518
Event 310:3019
Event 410:4520
Event 411:0021
Event 411:1522
Event 511:3023
Event 511:4524
Event 512:0025
Event 512:1526
Event 612:3027
Event 612:4528
Event 613:0029

 

 

The visualization, I am trying to accomplish basically is a single column table that scales the height of the rows based on the count of the time of time index. 

 

The Treemap would be one option. However, the problem with this visual is the column autoscale and that it doesn't wrap the text.  Another challenge is the sorting of the boxes in the Treemap Visual as this cannot be changed and seems to be determined automatically. 

 

If anbody has any idea how a visualization could be accomplished, it would be much appreciated.  

 

 

Frank

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @frankGB ,

 

As far as I know, Power BI doesn't support us to sort in Treemap. Treemap will be sorted by value in a logical order from most to least. If you add the same value like 1 into value field, Treemap will be sorted by Group field.

Here I suggest you to add [Event] and [Time Index] into group and then add a measure which return 1 into value field.

Finally, Treemap will be sorted from Event1 1 to Event6 29.

RicoZhou_0-1652336717013.png

 

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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