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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

DAX to compare rows combination

 

Following is a snippet of my sample dataset (that has data quality issues):

 

ExcelPBI_1-1626994943832.png

 

I want to compare Apnt date rows and apnt type rows combination. If there is a match then only distinct values are considered in the resultset.

So, with the right calculated column, the result would look like this:

ExcelPBI_2-1626994943813.png

 

 

Many thanks in advance!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@V-pazhen-msft  thanks for replying, regarding this issue I have posted a new question with better dataset and samle pbi file. Please check: Compare row combinations - Microsoft Power BI Community

 

View solution in original post

3 REPLIES 3
V-pazhen-msft
Community Support
Community Support

@Anonymous 
First you need to fill down the  case id and client id, then create a distinct table (table = distinct(table)), or just add the the column in a table visual (don't summarize).

Vpazhenmsft_0-1627352902056.png

Vpazhenmsft_1-1627352990019.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@V-pazhen-msft  thanks for replying, regarding this issue I have posted a new question with better dataset and samle pbi file. Please check: Compare row combinations - Microsoft Power BI Community

 

amitchandak
Super User
Super User

@Anonymous , Is the above your data format, or you have put that into a matrix.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

 

Create a table with distinct or delete duplicates in power query

example 

New table = Distinct(Table)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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