Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have 2 tables with quantity columns. I created a measure to subtract between 2 columns with the DAX below.
Measure = sum(Table1[Quantity]) - sum(Table2[Quantity])
It is very simple measure but still has the wrong result in some lines without reason. As you can see in the below screenshot, all lines are correct except 2 lines. I tried to extend the decimal of those columns but the data in Table 1 and Table 2 is the same, no decimals. Any reasons for the problem? Thanks in advance.
@katietran0467 it becomes a bit easier not to ask an unnecessary question if everything aligns in the post. Think from the perspective of someone who is reading the post and trying to connect the dots.
Anyhow, what is the data type of column1 and column 2 in PQ?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k
I explained the situation and had the screenshot and highlighted the problem in the ss as well. Also, I extended the number of decimals for all columns to find the differences but no clue.
In PQ, the quantity columns in Table 1 and Table 2 are decimal format.
@katietran0467 in the screenshot you have a sum of quantity and open bc and then var, but the problem statement is different than what you showed in the screenshot, could you provide the details that reflect what is in the screenshot.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k , Var = sum(column 2) - sum(column 1). The column's names may be confused but the same concept. You could see all lines correct except 2 lines I highlighted.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!