Forum Discussion
jhowe1
Helper III
5 years agoReference measure in another calculation
I have a measure which simply switches values depending on which currency is selected as bottom query, how do I calculate a percentage of this value, or reference NSV in any other measure? Say for ex...
- 5 years ago
This was close however I needed to use calculate as SUM wouldn't work and filter by whole product table not referencing a column.
% of NSV = DIVIDE( [NSV] , CALCULATE ( [NSV] , ALL ('30 Product' )))
PhilipTreacy
Super User
5 years agoHi jhowe1
I'm not sure what your data looks like but assuming '30 Product'[Product] contains numbers try this
% of NSV = DIVIDE( [NSV] , SUM ( ALL ( '30 Product'[Product] )))
[NSV] is already a SUM of values so you don't need to do it again.
If this doesn't work please supply some sample data so I can see your table structure.
Regards
Phil
jhowe1
Helper III
5 years agoThis was close however I needed to use calculate as SUM wouldn't work and filter by whole product table not referencing a column.
% of NSV = DIVIDE( [NSV] , CALCULATE ( [NSV] , ALL ('30 Product' )))