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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
JacobMich
Regular Visitor

How to get multiple values in the same table to point back to on "key" in the same table in Power BI

I have a table similar to below in PowerBI.  Originally I was linking relationship between SC and another table.  We have since added more places and now I need Level 1 to include 100,118, and Q.  My visual bar graphs I just want them to show Level 1-5 without adding extra spots for Level 1 - 100 (Bar Graph). 118 (Bar Graph), and Q (Bar Graph).  It shows 3 for Level 1 instead of a combined one bar in the visual for "Level 1".  The values in SC, NC, GA, NC, and CA have multiple instances in another table.

LevelSCNCGANCCA
1100118  Q
2101111  P
3102112  O
4103113  N
5104114   
1 ACCEPTED SOLUTION

Hi,

Create this calculated column formula

All codes=CALCULATE(CONCATENATEX(Data,Data[Code],", "),FILTER(Data,Data[Levels]=EARLIER(Data[Levels])))

Ashish_Mathur_0-1755216827293.png

Use this new column on the X-axis.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
srlabhe
Super User
Super User

Your ask is bit difficult to understand , kindly provide intended O/p with sample PBIX if possible

This is the original table.  When I create a Bar Graph Visual, 1 has 3 graphs (108,118,Q), 2 has 3 Graphs (101,111,P) and so forth.  How do I get my visual for "1" to combine the 108,118,Q data.

LevelsCode
1108
2101
3102
4103
5104
1118
2111
3112
4113
5114
1Q
2P
3O
4N

 

JacobMich_0-1755197596901.png

 

Hi,

Create this calculated column formula

All codes=CALCULATE(CONCATENATEX(Data,Data[Code],", "),FILTER(Data,Data[Levels]=EARLIER(Data[Levels])))

Ashish_Mathur_0-1755216827293.png

Use this new column on the X-axis.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

share the PBIX please 

Apologies, I can not because of privacy.  Thanks

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.