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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kalachuchi
Helper III
Helper III

Help with table relation

So I have two tables Input and Output which has ID and Master ID as foreign key relating to each other.

 

My chart is showing output data while a table below is showing input data.

If I add output date (results) to the input data then the table only shows info of output while it should also include input table.

 

Input table:

IDNameAge
1Arthur Morgan22
2Dutch Van der linde32
3

Hosea Matthews

45

 

Output Table:

Master IDAnswer 1Answer2
1YesYes
2NoNo

 

Problem is 

When I show the answer 1 on my column chart it shows 2 counts,

 

Expected output on Table:

NameAgeAnswer1
Arthur Morgan22Yes
Dutch Van der linde32No
Hosea Matthews45 

 

Problem is when I add answer 1 from Output Table, it only shows name who has only answered the questions. I want all input appear on the table even if answered or not.

ID and master ID are already connected on table relations.

Thank you for help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

can you share some sample data with us? 

 

It seems to work ok for me 

 

Karlos_0-1595581290884.pngKarlos_1-1595581301559.png

 

 

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Is that what you're looking for? 

Karlos_0-1595583432369.png

https://1drv.ms/u/s!AnIEh6WhI4JogrAAnyDVVkj51F1Xdg?e=v77bfY

 

I've created a sample PBIX to show you how to achieve this. essentially, I've just merged the two, together then replaced "null" with "No answer"

 

 

 

Did not know this merge function lol. It worked, thank you so much!

Anonymous
Not applicable

can you share some sample data with us? 

 

It seems to work ok for me 

 

Karlos_0-1595581290884.pngKarlos_1-1595581301559.png

 

 

 

it does work, problem is I think the column chart is filtering the table since column chart only contains answered questions. It does not show Hosea.

calerof
Impactful Individual
Impactful Individual

Hi @Kalachuchi,

 

If you select Id from your Input table as axis and count Answer1 as values in a Column chart, make sure you expand the arrow in the Id field and select "Show items with no data", and you get this:

 

ColumnChart.png

 

Hope it helps.

 

Regards,

 

Fernando

@calerof I am achieving to count the answers on the chart and full input list with answer on table.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.