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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vishnukumar
Advocate I
Advocate I

Grouping table rows based on values

Hi,

 

I am new to PowerBI Desktop. I would like to group rows based on column values. Here I have given below example what I am trying to achieve. Can some one share me the step by step guiding document to do that.

 

Note : I have two separate table for County and City.

From :

Country

City

USA

New York

USA

Boston

USA

Atlanta

UK

London

UK

Manchester

UK

Birmingham

UK

Liverpool

 

To :

 

Country

City

Place

Open Hours

USA

New York

Central Park

10 AM

 

 

Times Square

9 AM

 

 

High Line

11 AM

 

Boston

Fenway Park

10 AM

 

 

XXX

1

 

 

XXX

2

 

Atlanta

YYYY

3

UK

London

A

1

 

 

B

2

 

Manchester

A

1

 

 

B

2

 

 

C

3

Grouping table rowsGrouping table rows

 

 

 

1 ACCEPTED SOLUTION

Hi,

 

My problem resolved by using matrix and below tips.

 

"Once you have your values set in the row section of your matrix, go to your visualization. In the upper left, click the drilldown "Expand all down one level in the hierarchy" it is the right-side selection that forks. Click that until you get to the bottom level of what you want to see. Then go to the formatting option for the matrix, under "Row Headers" turn "Stepped layout" off.

 

That should list your matrix in a table style look while not repeating the valuse of the left side columns. "

 

Regards,

Vishnu

View solution in original post

13 REPLIES 13
CYParker
Advocate II
Advocate II

This was a good solution for me until I added more "rows" than would fit on the screen and found I couldn't horizontal scroll 😞

Hi @CYParker 

Were you able to find a solution to your problem? When you added more "rows" than could fit on the screen? I tried to see if there was an alternative in table visual but I could not find one.

 

Thanks for any help!

Hi @lokeshpatel 

 

I wasn't unfortunately. I stopped working on it and haven't gone back to it in recent times to see if another solution has become available

Phil_Seamark
Employee
Employee

Hi @vishnukumar

 

Which of your tables has the detail on the hours etc?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hi,

 

sorry for the delay. All fields like (Country, City, Place, Openhours) in a seperate tables.

 

Regards,

Vishnu

vishnukumar
Advocate I
Advocate I

Hi,

 

I am new to PowerBI Desktop. I would like to group rows based on column values. Here I have given below example what I am trying to achieve. Can some one share me the step by step guiding document to do that.

 

Note : I have two separate table for County and City.

 

From :

Country

City

USA

New York

USA

Boston

USA

Atlanta

UK

London

UK

Manchester

UK

Birmingham

UK

Liverpool

 

 To :

Country

City

Place

Open Hours

USA

New York

Central Park

10 AM

 

 

Times Square

9 AM

 

 

High Line

11 AM

 

Boston

Fenway Park

10 AM

 

 

XXX

1

 

 

XXX

2

 

Atlanta

YYYY

3

UK

London

A

1

 

 

B

2

 

Manchester

A

1

 

 

B

2

 

 

C

3

Did this resolve your issue?

Use the Matrix visualisation (it's in between the table and R script visuals).

Hi,

 

When I am trying with Matrix, I canot see any rows are binding.

 

its only displaying country as first column and City is displaying as column header. 

 

CountryNewyorkBoston
USA  

 

May I know exact step I need to follow or can you refer any video.

 

Regards,

Vishnu

Hi,

 

Can some one guide me to do the Matrix Row Grouping ?

 

Regards,

Vishnu

Hi,

 

My problem resolved by using matrix and below tips.

 

"Once you have your values set in the row section of your matrix, go to your visualization. In the upper left, click the drilldown "Expand all down one level in the hierarchy" it is the right-side selection that forks. Click that until you get to the bottom level of what you want to see. Then go to the formatting option for the matrix, under "Row Headers" turn "Stepped layout" off.

 

That should list your matrix in a table style look while not repeating the valuse of the left side columns. "

 

Regards,

Vishnu

This worked well!

Hi Phil_Seamark,

 

Thanks for you suggestion. Database re-creation is going on, I will try with matrix and let you know soon.

 

Mean while, is there any sample, then please share.

 

Regards,

Vishnu

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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