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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
lscoffield
Frequent Visitor

Display only rows that differ from previous row

I have a data set that contains columns A, B, C, D, and E. In a grid, the first row will always display, the subsequent rows will display if one or more columns differ from the previous row.  Is this possible with Power BI?

 

1 ACCEPTED SOLUTION
nandic
Super User
Super User

@lscoffield , if you would like to delete duplicates so that only first occurence remains, you can remove duplicates in Power Query.

remove duplicates.PNG

If you need to compare row to exactly previous row then you should add several steps:
1) In power query add index column
2) Concatenate these columns in one column
3) Create calculated column using earlier or lookup to get previous row ( https://community.powerbi.com/t5/Desktop/How-to-get-previous-row-value-for-text-column/td-p/312560)
4) Filter data based on that column on report level


View solution in original post

2 REPLIES 2
edhans
Super User
Super User

Can you provide sample data (per links below) and what your expected output is? Your explanation is not clear enough for me to get started, but I am 99.9% sure this will not be too difficult. But I don't want to waste type typing in fake data that isn't relevant to your situation, or returning a result that doesn't answer your question.

 

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting
nandic
Super User
Super User

@lscoffield , if you would like to delete duplicates so that only first occurence remains, you can remove duplicates in Power Query.

remove duplicates.PNG

If you need to compare row to exactly previous row then you should add several steps:
1) In power query add index column
2) Concatenate these columns in one column
3) Create calculated column using earlier or lookup to get previous row ( https://community.powerbi.com/t5/Desktop/How-to-get-previous-row-value-for-text-column/td-p/312560)
4) Filter data based on that column on report level


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.