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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Digger
Post Patron
Post Patron

Wrong price different

Trying to find differnet between prices but PBI sum except of minus

 

Digger_0-1634128093635.png

Payments =
SUMX (
SUMMARIZE ( Table, Table[_Eur_Pay],Table[id], Table[type] ),
CALCULATE(MAX(Table[_Eur_Pay]))
)
-------------------------------------
Products =
SUMX (
SUMMARIZE ( Table, Table[_Eur_Prod],Table[order_products.id]),
CALCULATE(SUM(Table[_Eur_Prod]))
)
-------------------------------------
_Price_Diff = [Payments]-[Products]
1 ACCEPTED SOLUTION

Hi @Digger ,

 

Thank you for the screenshot.

If I see your screenshot, you are showing this metrics at type level.

While you 2nd DAX is summarised and calculated at different set of columns. I think this might be causing the issue here.

 

Have you tried checking your measures independently, whether they are calculated correctly when summarised at relevant columns.

Try creating 2 tables:

  • 1st table - all columns in summarised statement of 1st DAX and the measure
  • 2nd table - all columns in summarised statement of 2nd DAX and the measure

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
Pragati11
Super User
Super User

Hi @Digger ,

 

Just looking at your 2 DAX expressions, both expreassions are summarising the value at different granularities.

  • 1st DAX summarises a value at Table[_Eur_Pay],Table[id], Table[type] columns
  • 2nd DAX summarises a value at Table[_Eur_Prod],Table[order_products.id] columns
  • Also I don't have visibility on your complete table, like what is the left-most column on your table visual against which you are trying to represent these measures.

Can you share a complete screenshot please?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 

 

 

Hi @Digger ,

 

Thank you for the screenshot.

If I see your screenshot, you are showing this metrics at type level.

While you 2nd DAX is summarised and calculated at different set of columns. I think this might be causing the issue here.

 

Have you tried checking your measures independently, whether they are calculated correctly when summarised at relevant columns.

Try creating 2 tables:

  • 1st table - all columns in summarised statement of 1st DAX and the measure
  • 2nd table - all columns in summarised statement of 2nd DAX and the measure

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

please delete screenshot, as it has sensitivity info, ty

Hi @Digger ,

 

I have deleted the screenshot as I was unaware of it as you shared it as well.

Make sure from next time not to share any sensitive information. 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.