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
Joranger
New Member

SUM of VALUE based on SELECTED VALUES in one table.

Hi everyone!

 

First off, Im very new at using DAX. 

I have an table with some prices on products that I want an measure to sumarize based on what I select in said table. 

 

Thus far I have this:

Total SUMX(VALUES(_liste[Pris]), _liste[Pris])
 
Problem with this is when two products have the same price, it won't sum the two prices.
 
Thanks for any help! 
1 ACCEPTED SOLUTION
Adescrit
Impactful Individual
Impactful Individual

Hi @Joranger 

 

If you want to some all of the prices, regardless of whether they are duplicate values or not, perhaps you can use a simple SUM rather than SUMX?

 SUM( _liste[Pris] )


Did I answer your question? Mark my post as a solution!
My LinkedIn

View solution in original post

3 REPLIES 3
Adescrit
Impactful Individual
Impactful Individual

Hi @Joranger 

 

If you want to some all of the prices, regardless of whether they are duplicate values or not, perhaps you can use a simple SUM rather than SUMX?

 SUM( _liste[Pris] )


Did I answer your question? Mark my post as a solution!
My LinkedIn

Oh dear God... Yup, that did it. Thank you so much!

AjithPrasath
Resolver II
Resolver II

@Joranger ,

  Can you try using disitinct in your dax query?

Total = SUMX(DISTINCT(_liste[Pris]), _liste[Pris])

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

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.