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
Anonymous
Not applicable

Sum measure instead of calculate

Hi all,

 

I want to sum the total meassurement instead of calculating it.

 

My data looks similar to this

 

Account numberKAMBalanceUnpaid ItemAvg. price pr. itemTheoretical value
(unpaid*avg.price)
1A10.00025015037.500
2b15.00001000
3c5.000153505.250
Total 30.00026520053.000

 

I want it to sum the total in "theoretical value" instead of calculating it, so the value should be (37.500+0+5.250) 42.750 instead of (265*200) 53.000

 

Right now I have tried following Dax code 

Theoretical value test = if( HASONEFILTER(''[Account Number]),SUM(unpaid item) * AVERAGE(avg. price pr. item), ???????)))

 

I dont know what to write instead of ????, to make it sum instead of calculate.

 

Can you guys help me? 🙂 

 

Thanks. 

 

4 REPLIES 4
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,
You can use this measure to fix the total for your Theoretical value column:
Theoretical(fixed)= SUMX(VALUE(KAM), [Theoretical value])


I hope this helps!

Anonymous
Not applicable

Hi, @Tanushree_Kapse,

 

I am not sure how to use the "theoretical(fixed), would you use it instead of ???? then`? 

Hi @Anonymous ,
Not instead of that... this is completely new measure which you can pull in the visual.

 

Anonymous
Not applicable

@Tanushree_Kapse, i am sorry, but it doesent seem to work as I want to.

 

Is it a problem that "theoretical value" is a calculated value of "Unpaid" and "Avg. Price"?

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.

Top Solution Authors