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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Junaid72
Frequent Visitor

combine data of two tables containing same value into one graph - Pivoting

I am trying to consolidate same set of data from two different tables into one graph, just like a pivot table in excel.

 

I have dates on the x axis, when i try to add number of items (just filtered numbers summed up of certain category) it produces two different bars.

 

test 1.JPG

 

How do i get this to work?

 

test 2.JPG

 

 

6 REPLIES 6
JordanJSA
Frequent Visitor

Hi Junaid, 

 

I would go for a simple new measure of the sum of both columns then combined, i attempted this with some mock data and believe i got the results you are looking for.  Let me know how you get on!

 

The expression i used was Measure = SUM('Branch A'[Amount Rec'd]) + SUM('Branch B'[Amount Rec'd])power bi help.PNG

Hi @JordanJSA

 

I have tried this Measure but it doesn't seem to work. I would like to see all amount columns consolidated in one Bar.

 

The other bar would consolidate number of instances into one. hope it makes sense.

 

I have tried your solution and this is how my data looks now.

 

test 4.JPG

 

 

Hi Junaid, 

 

I had to create a relationship between the two tables via the date before it would work on my example, is this possible to do on your data?

 

thanks 

Hi @JordanJSA

 

No, unfortunatley not. My data doesn't allow me to do that for some reason.

 

I have attached screenshots of what my data lookslike. hope it makes sense. I am just trying to get power BI to act as a Pivot table in excel and only add correct product category, filter out blanks and sum up number of instances along with summarised totals for the group.

 

TEST 5.JPGTEST 6.JPG

I think without the relationship between the date columns it won't be possible, i noticed that the date values are using different formats in one of your tables, when loading into powerbi do you have both date columns formatted correctly? also what happens when you try to create the relationship between the date columns?

Hi @JordanJSA

 

Unsure where i am going wrong to be honest... I have tried to make a relationship between the two columns but it just doesn't seem to work.

 

TEST 5.JPGTEST 6.JPG

 

Any ideas?

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.