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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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