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

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.

View solution in original post

2 REPLIES 2

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.

Thank youSmiley Happy

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.