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
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
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.