cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted

Re: Query in calculated Measure

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

2 REPLIES 2
Highlighted

Re: Query in calculated Measure

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 a Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

Highlighted
New Member

Re: Query in calculated Measure

Thank youSmiley Happy

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors