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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Iguinrj
Helper I
Helper I

DAX/Logic Function - Parameter Beatin

Gostaria de saber como posso realizar a seguinte comparação utilizando a linguagem DAX.

Preciso comparar a versão de um atributo do mesmo parâmetro em tabelas diferentes. Se os valores forem iguais, quero que retorne "Ok"; caso contrário, quero que retorne "Nok".

resultado esperado:

Iguinrj_1-1689618239146.png
Iguinrj_2-1689618279044.png

Iguinrj_0-1689618616228.pngIguinrj_1-1689618629267.png

 

 



2 REPLIES 2
Anonymous
Not applicable

Hi @Iguinrj ,

 

First consider appending three tables as one:

UnionTable = UNION('Table2','Table3','Table4')

vcgaomsft_0-1689731743146.png

Then create a new calculated column in Table1:

Column5 = 
IF(
    COUNTROWS(
        FILTER(
            'UnionTable',
            'UnionTable'[Column1] = 'Table1'[Column1] &&
            'UnionTable'[Column2] = 'Table1'[Column2] &&
            'UnionTable'[Column3] = 'Table1'[Column3] &&
            'UnionTable'[Column4] = 'Table1'[Column4]
        )
    ) > 0,
    "equals",
    "different"
)

vcgaomsft_1-1689731866565.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

I need to do the following comparison:

Example: if the values ​​of the same attribute of the same element from different tables are equal. If they are equal, I need to return: equal requirements; if they are different, different parameters.

 

Iguinrj_0-1690385762739.png

Iguinrj_0-1690385889779.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.