Forum Discussion
Compare rows values (Same ID +Same Value)
Hi,
I have a table that contains same ID in two different rows.
I want see if they have same "Totals" and then If yes, state "TRUE", if not, state "FALSE"
I am doing this in powerquery because I'll use this information in a diffrent table.
New Column is what I need to build:
| ID | Type | Total | New Column |
| 1234 | NA | 58 | TRUE |
| 1234 | Voucher | 58 | TRUE |
| ID | Type | Total | New Column |
| 458 | NA | 58 | FALSE |
| 458 | Voucher | 57 | FALSE |
5 Replies
- amitchandakSuper User
Try
if(isblank(countx(filter(table,table[id]= earlier(table[id]) && table[Total]<> earlier(table[Total]))),"FALSE","TRUE")Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin- AnonymousNot applicable
thank you amitchandak but I need to do this in "Power Query". With this formula you have me it will work?
- amitchandakSuper User
This is DAX column formula for Power BI. You need to check for Power Query.
- mwegenerMost Valuable Professional
Hi Anonymous ,
check this out.
Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support. - mwegenerMost Valuable Professional
Hi Anonymous,
is your problem solved?
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.