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 IV
Super User IV

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!!
My Recent Blog -Week is not so Weak 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?

Highlighted
Super User IV
Super User IV

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!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User III
Super User III

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
twitter - LinkedIn - YouTube - website

Highlighted
Super User III
Super User III

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
twitter - LinkedIn - YouTube - website

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors