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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
JohnSonn
Frequent Visitor

Count all values in table that share same value as current row in pivot table

I am trying to count all values in a table that have the same value as the current row.

 

I have a duplication key and I want to see how many time this key shows up in the rest of the table.

 

Duplication key:

=CONCATENATE(CONCATENATE([Total Weight kg],"-"),[Total Net Value])

 

Key Count:

=COUNTAX(ALL('Invoice Data'),CONCATENATE(CONCATENATE([Total Weight kg],"-"),[Total Net Value])=[Duplication Check Key])

 

But at the moment I am getting this:

 

410.556-011912
3702.224-011912
869.4-011912
408.29-011912
1356.356-011912
361.496-011912
1773.014-011912
1240.89-011912

 

If I do the same thing without the ALL function:

 

=COUNTAX('Invoice Data',CONCATENATE(CONCATENATE([Total Weight kg],"-"),[Total Net Value])=[Duplication Check Key])

 

I only count items in the current row and I count all of them.

 

The issue with power query is that you cannot simply use "@"[column] like you can in a table. Please help

2 REPLIES 2
Anonymous
Not applicable

"The issue with power query is that you cannot simply use "@"[column] like you can in a table."

What does it mean? I don't get it... In Power Query you can do ANYTHING. You just have to know how. Power Query is more powerful for data munging than DAX. For instance, in PQ you can use recursion. This is not possible in DAX.

Best
D

do you have a workaround?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.