cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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:

 

IDTypeTotalNew Column
1234NA58TRUE
1234Voucher58TRUE

 

IDTypeTotalNew Column
458NA58FALSE
458Voucher57FALSE
5 REPLIES 5
Highlighted
Super User IX
Super User IX

Re: Compare rows values (Same ID +Same Value)

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Frequent Visitor

Re: Compare rows values (Same ID +Same Value)

thank you @amitchandak but I need to do this in "Power Query". With this formula you have me it will work?

Super User IX
Super User IX

Re: Compare rows values (Same ID +Same Value)

This is DAX column formula for Power BI. You need to check for Power Query.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User IV
Super User IV

Re: Compare rows values (Same ID +Same Value)

Hi @barbaracmv ,

 

check this out.

PBIX

 

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.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
"Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website

Highlighted
Super User IV
Super User IV

Re: Compare rows values (Same ID +Same Value)

Hi @barbaracmv,


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.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

I work at KUMAVISION AG , one of the world's largest
implementation partners for Microsoft Dynamics. #BetterTogether
"Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Kudoed Authors