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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors