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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RonaldvdH
Post Patron
Post Patron

How to ...

Hey Guys,

 

I have a question on how to display this situation.

I have a registration based on a Building and a Status

 

Now I've summarised this table but i want to summarize the status as wel but I do not want multiple colums with numbers in them.

Basically i just want one column but im not sure on how to do that and not sure on the format

 

I've been thinking about just displaying the distinct options, is this possible ?

 

 

BuildingStatus
Building A1-2
Building B3-4-5-6

 

BuildingStatus
Building A1
Building A1
Building A2
Building A2
Building B3
Building B4
Building B5
Building B6
1 ACCEPTED SOLUTION
ray_aramburo
Super User
Super User

This one is a fun one, so here are the list of steps (need to be done in Power Query):

1) Split your status column by position (1 character) -> this will create a separate colum for the letter prefix and the number

ray_aramburo_0-1687360640071.png

2) Remove Duplicates -> this ensures only unique values on our rows

ray_aramburo_1-1687360704573.png

3) Group All Rows by the Letter column (Status.1)

ray_aramburo_2-1687360743303.pngray_aramburo_3-1687360755297.png

 

4) Add a Custom Column to add a List of records (the numerical ones)

ray_aramburo_4-1687360798283.png

5) Click on Extract Values (expanding the Custom column) and select "-" as the custom delimiter

ray_aramburo_5-1687360881573.png

6) Expand All Data column and extract Building column, then remove again duplicate rows

ray_aramburo_6-1687360946755.pngray_aramburo_7-1687360969069.png

7) Use the merge columns feature to join Letter column with list of values

ray_aramburo_8-1687360998882.png

And there you go!

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ray_aramburo
Super User
Super User

This one is a fun one, so here are the list of steps (need to be done in Power Query):

1) Split your status column by position (1 character) -> this will create a separate colum for the letter prefix and the number

ray_aramburo_0-1687360640071.png

2) Remove Duplicates -> this ensures only unique values on our rows

ray_aramburo_1-1687360704573.png

3) Group All Rows by the Letter column (Status.1)

ray_aramburo_2-1687360743303.pngray_aramburo_3-1687360755297.png

 

4) Add a Custom Column to add a List of records (the numerical ones)

ray_aramburo_4-1687360798283.png

5) Click on Extract Values (expanding the Custom column) and select "-" as the custom delimiter

ray_aramburo_5-1687360881573.png

6) Expand All Data column and extract Building column, then remove again duplicate rows

ray_aramburo_6-1687360946755.pngray_aramburo_7-1687360969069.png

7) Use the merge columns feature to join Letter column with list of values

ray_aramburo_8-1687360998882.png

And there you go!

 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





@ray_aramburo I had to change my datamodel a little bit but with your play by play I got it to work

Glad it worked! 🙂 





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors