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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
ashmeet50
Frequent Visitor

Merging two column charts together

Hello Everyone,

I have made 2 column charts and both of them have different data sources.

Age groups and Reference numbers are different in both the cases.

How can I merge these two graphs where the values on the x axis remain the same and I can see the data like this pictureimage31.png 

 

Untitled.png

2 ACCEPTED SOLUTIONS
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @ashmeet50,

 

New a calculated table:

TB3 =
UNION (
    ADDCOLUMNS ( TB1, "Legend", "Source1" ),
    ADDCOLUMNS ( TB2, "Legend", "Source2" )
)

Then, create group bins based on [Age] in "TB3".

 

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @ashmeet50,

 

Above error is caused by typing the DAX formula into a measure.

1.PNG

 

What you need is a calculated table as highlighted in below screenshot.

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @ashmeet50,

 

New a calculated table:

TB3 =
UNION (
    ADDCOLUMNS ( TB1, "Legend", "Source1" ),
    ADDCOLUMNS ( TB2, "Legend", "Source2" )
)

Then, create group bins based on [Age] in "TB3".

 

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Yuliana,

I am getting an error message

The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.

 

Ashmeet Singh

Hi @ashmeet50,

 

Above error is caused by typing the DAX formula into a measure.

1.PNG

 

What you need is a calculated table as highlighted in below screenshot.

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Andre_Maciel
Frequent Visitor

You need to create a relationship between this two tables, what is your key field? Maybe you will need to create a auxiliar table, with a distinct list of this key value and then connect this two tables to a new auxiliar table.

 

Show some example of this data, it will help us to demonstrate.

For eg. I have 2 data sets such as

Reference numberAge
xyz12323
ery 24556
asd4545667
vsvc565634
gsfxgvd4545678
asdas34
dsad56
fghfh568

 

and

 

Reference numberAge
ffe533
edf545
eeq5454
qeqe234
ew768
asasas567
e789
sasewd433

 

And the way I am doing right now is

Untitled1.pngUntitled2.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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