Forum Discussion

kasife's avatar
kasife
Helper V
3 years ago
Solved

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?

 

 

Result:

 

 

  • 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)

    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")

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

2 Replies

  • MahyarTF's avatar
    MahyarTF
    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)

    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")

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