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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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

@Anonymous  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
Anonymous
Not applicable

@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

@Anonymous  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)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors