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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Imperial_Lackey
Regular Visitor

Comparing two columns in a table...

Hi All

 

 

Trying to create a table that compares two column values and returns a value where there is a match ('Balanced' or 'Imbalanced').


I know I've done it correctly as its working in most cases, however there are many (too many to be comfortable with) that are clearly matching but are being reported as "imbalanced".

 

 

Its a large data set, just under 4m rows, but I don't believe that should be an issue...

 

 

I'm using:


Match = IF('Summary of Accounted DR and CR'[Sum of Accounted_CR]='Summary of Accounted DR and CR'[Sum of Accounted_DR], "Balanced", "Imbalanced")

 

 

 

I get the following;

 matching cells reported as not matching  (Imbalanced)...matching cells reported as not matching (Imbalanced)...

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

it's probably rounding issues, you can add ROUND() to your comparison to cut of at the same precision to solve it



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

2 REPLIES 2
Stachu
Community Champion
Community Champion

it's probably rounding issues, you can add ROUND() to your comparison to cut of at the same precision to solve it



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Aaah! I didn't think that was the issue but playing around with the forumula and then eventually switching the data type of the two currency cells to 'Fixed Decimal..' seems to have eliminated any formatting/ rounding issues! (if that's what it does)

 

Merci Beaucoup! Smiley LOL

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors