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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
jmmoran20
Regular Visitor

Grouping Table Data by Region

Hello,

 

Looking for insight on grouping/conjoining data in a table. I've attached a picture to better describe what I'm looking to do. 

 

jmmoran20_0-1597247027737.png

As you can see, for USA there are several sites and it only displays USA once (instead of having USA, USA, USA, USA, etc). How can I do this? Unfortunately, I don't have access to this table just a screenshot of it. 

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

Hi  @jmmoran20 ,

 

Value showing may be a problem when using matrix,not sure what's in your data,see my sample below:

You may take a try,just go to format>row headers>steps layout :off

Capture.PNG

If matrix doesnt work,I have a workaround for you:

First go to query editor>add column>index column;

Then create 2 columns as below:

_Area = 
var _previous=CALCULATE(MAX('Table'[Area]),FILTER(ALL('Table'),'Table'[Index]<EARLIER('Table'[Index])))
Return
IF(_previous<>BLANK(),BLANK(),'Table'[Area])
_Country = 
var _previous=CALCULATE(MAX('Table'[Country]),FILTER('Table','Table'[Index]<EARLIER('Table'[Index])&&'Table'[Country]=EARLIER('Table'[Country])))
Return
IF(_previous<>BLANK(),BLANK(),'Table'[Country])

And you will see:

2.PNG

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi  @jmmoran20 ,

 

Value showing may be a problem when using matrix,not sure what's in your data,see my sample below:

You may take a try,just go to format>row headers>steps layout :off

Capture.PNG

If matrix doesnt work,I have a workaround for you:

First go to query editor>add column>index column;

Then create 2 columns as below:

_Area = 
var _previous=CALCULATE(MAX('Table'[Area]),FILTER(ALL('Table'),'Table'[Index]<EARLIER('Table'[Index])))
Return
IF(_previous<>BLANK(),BLANK(),'Table'[Area])
_Country = 
var _previous=CALCULATE(MAX('Table'[Country]),FILTER('Table','Table'[Index]<EARLIER('Table'[Index])&&'Table'[Country]=EARLIER('Table'[Country])))
Return
IF(_previous<>BLANK(),BLANK(),'Table'[Country])

And you will see:

2.PNG

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
amitchandak
Super User
Super User

@jmmoran20 , not very clear. You can try matrix, stepped layout off .

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @jmmoran20 

 

Not sure which chart you are using for visualization. Check the format tab of the vizualization if any avaiable option is present.

 

Alternatively, I would use the matrix chart for visualization, this will automatically repeat the names you have mentioned.

pranit828_0-1597248338567.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Regards,
Pranit

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.