Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello:
I have a "Table" with three columns, A, B and C, filled with many different string values.
I want to find how many rows of that table have all three columns equal to another row in the table. In other words, find rows with duplicate "A+B+C". In a visual I would need a number, indicating how many non unique values there are, combining the three columns.
Is there a formula to achieve this or do I have to concatenate all three columns in one first and then somehow count the duplicates?
Thank you very much and regards.
Hi @superjam
In general that depends on the filter context which essentially depens on the visual itself. However, The following should work in a card visual
Count =
COUNTROWS (
DISTINCT ( SELECTCOLUMNS ( "A", 'Table'[A], "B", 'Table'[B], "C", 'Table'[C] ) )
)
Hello,
Just after posting the last response, I figured it out: create a new column concatenating the three columns and then use the idea of @FreemanZ to calculate the duplicate ones.
Thank you, @FreemanZ
The function DISTINCT() counts unique values in one column of the table. So, your measure gives the repeated values in one column.
But how about the following example:
Only one row is duplicated (marked in yellow), because only in that case all three columns are equal with each other. I hope this clarifies the problem.
Thanks again.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |