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

View all the Fabric Data Days sessions on demand. View schedule

Reply
jitendraadh
New Member

Query in calculated Measure

Can Some one help me to get correct total in calculated measure in given below table?
     
   Mkt ValueMkt Value
Mutual FundUnitsNAVBy Calculated ColumnBy Calculated Measure
MF11001.1110110
MF22002.2440440
MF33003.3990990
Total600Not applicable15403960
   correct valueincorrect value
   It is arrived by summation of values in calculated columnIt is arrived by multiplication of total units i.e.600 and total of NAV i.e. 6.6 which is illogical
   
   
   
     
formula used in calculated measure = units*sum(NAV) 
Note :- if I doesn’t insert "Sum" function then it doesn’t allow me to select "NAV" column
1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

You need SUMX. something like this

 

=SUMX(values(tablename[mutual fund]),tablename[units] * tablename[NAV])

 

Read my article here https://exceleratorbi.com.au/use-sum-vs-sumx/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
MattAllington
Community Champion
Community Champion

You need SUMX. something like this

 

=SUMX(values(tablename[mutual fund]),tablename[units] * tablename[NAV])

 

Read my article here https://exceleratorbi.com.au/use-sum-vs-sumx/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thank youSmiley Happy

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors