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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.