Forum Discussion
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?
lscoffield , if you would like to delete duplicates so that only first occurence remains, you can remove duplicates in Power Query.
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
2 Replies
- edhansCommunity Champion
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 - nandicResident Rockstar
lscoffield , if you would like to delete duplicates so that only first occurence remains, you can remove duplicates in Power Query.
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