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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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