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
Syndicate_Admin
Administrator
Administrator

COINCIDIRX function

Good afternoon

I would like to use the COINCIDIRX or COINCIDIRX function in powerbi, what would be the corresponding function?

Greetings and thank you very much.

1 ACCEPTED SOLUTION

I think I have understand what do you can use DAX IF statement like below to get the position of non zero value.  

Column = IF(ColA<>0;1;IF(ColB<>0;2;0))

 

View solution in original post

5 REPLIES 5
freginier
Solution Sage
Solution Sage

Maybe these

CONTAINSSTRING() or lookupvalue() or [column] in {"x","y","z"}

Enjoy ! 

Good

the comparison is between two columns:

the formula I want to make is as follows: COINCIDIRX (TRUE; Column A:ColumnB<>0;0)

how could I do this with two columns of powerbi.

Greetings.

You can't search in 2 column like your formula.

Can you give me more detail please ? Data sample and what you expect 

Bunas,

Of course

I give you an example of data and what I want to do:

Hours

Daily Market Price day 28/01/2022:

ColumnaA

Market Price

Diario day

29/01/2022:

ColumnaB

1109
2208

3

305
4

0

7
5156
6168
7170
820022
9310
10115
1156
1267
13528
145523
1552.352
163523.3
1736.94
18250.23
192420
202780
213278
222256
2310020
2400

we have the table above, because I want the match sheet to do the following:

time 1 = MATCHX (TRUE,ColumnAHora1:ColumnaBHora1<>0;0)

When applying that function what I should return is a 1, since in columnNow1 the criterion of 10 is non-zero is met.

time 4 = MATCHX (TRUE,ColumnAHora4:ColumnaBHora4<>0;0)

When applying that function what I should return is a 2, since in column BHora4 the criterion of 7 is non-zero is met.

hour 24 = MATCHX (TRUE,ColumnAHora24:ColumnaBHora24<>0;0)

When applying that function what I should return is a 0, since the two values are 0.

I hope I have explained well what I need.

Thanks for the help beforehand.

Greetings.

I think I have understand what do you can use DAX IF statement like below to get the position of non zero value.  

Column = IF(ColA<>0;1;IF(ColB<>0;2;0))

 

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.