Forum Discussion

frankGB's avatar
frankGB
Frequent Visitor
4 years ago

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

     

    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.