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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kasife
Helper V
Helper V

Validation between two fact tables

hi Guys,

I have two fact tables (fOrçamento and fRealizado).

I would like to know the projects I have in one and not in the other table.

How could this be done? Can anyone help me to get this result?

 

kasife_0-1669503325747.png

 

Result:

kasife_1-1669503851004.png

 

 

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi,

I usually do it on the Power Query side (it depends on the data size).

For this purpose :

1-Merge both tables and create the new only (Full Outer join)

MahyarTF_0-1669505469887.png

2-After expanding the columns and selecting the particular columns that you need, create the new "custom Column" as bellow :

= Table.AddColumn(#"Expanded Sheet64", "Custom", each if [Id] <> null then
if [Sheet64.Id] <> null then "Project " & [Name] & " Contains in table A and B"
else "Project " & [Name] & " Contains in table A"
else "Project " & [Sheet64.Name] & " Contains in table B")

MahyarTF_1-1669505587254.png

Appreciate your Kudos an please mark it as a solution if it helps

Mahyartf

View solution in original post

2 REPLIES 2
MahyarTF
Memorable Member
Memorable Member

Hi,

I usually do it on the Power Query side (it depends on the data size).

For this purpose :

1-Merge both tables and create the new only (Full Outer join)

MahyarTF_0-1669505469887.png

2-After expanding the columns and selecting the particular columns that you need, create the new "custom Column" as bellow :

= Table.AddColumn(#"Expanded Sheet64", "Custom", each if [Id] <> null then
if [Sheet64.Id] <> null then "Project " & [Name] & " Contains in table A and B"
else "Project " & [Name] & " Contains in table A"
else "Project " & [Sheet64.Name] & " Contains in table B")

MahyarTF_1-1669505587254.png

Appreciate your Kudos an please mark it as a solution if it helps

Mahyartf

@MahyarTF thank you. It worked

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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