cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jest1234 Frequent Visitor
Frequent Visitor

Count same values

Can you help me please.

 

I have to colums with data and want to count the same values. 

 

duplicats.jpg

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Count same values

Hi @jest1234 ,

You can use below measure to find out values exists in both two columns:

Measure =
COUNTROWS (
    INTERSECT ( VALUES ( Table1[ColumnA] ), VALUES ( Table1[ColumnB] ) )
)

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Count same values

Hi @jest1234 ,

I'm not so clear for your requirement, can you please explain more about this?

If you mean you want to get the count records who has same value on multiple columns, you can try to use following measure formula:

Measure =
COUNTROWS ( FILTER ( ALL ( Table ), [Column1] = [Column2] ) )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |
jest1234 Frequent Visitor
Frequent Visitor

Re: Count same values

HI @v-shex-msft 

i appologise for bad description.

 

In one colum I have data for one month and in other colum for next month.

My quest is to find out how many same strings are in both colums. Probably it would work out, the number of duplicats.

 

I hope i have been more clear.

 

tnx, for help

jest1234 Frequent Visitor
Frequent Visitor

Re: Count same values

For help, this formula works in excel.

 

=SUMPRODUCT(--(ISNUMBER(MATCH(B28:B199999;C28:C49999;0))))

Community Support Team
Community Support Team

Re: Count same values

Hi @jest1234 ,

You can use below measure to find out values exists in both two columns:

Measure =
COUNTROWS (
    INTERSECT ( VALUES ( Table1[ColumnA] ), VALUES ( Table1[ColumnB] ) )
)

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 403 members 3,884 guests
Please welcome our newest community members: