Forum Discussion
Anonymous
3 years agoNot applicable
percentage not adding up when selected multiple dates
Hello everyone, i have a measure: Percentage =
VAR value1 = Sum(Value1[total])
VAR value2 = Sum(Value2[total])
Return
value2/value1 say for date1 on date slicer value1 = 200,0...
- Anonymous3 years ago
Hi Anonymous ,
Please add [Percentage] measure into SUMX() expression instead of the measure code.
You new measure should calculate based on [Percentage] measure.
New Percentage = SUMX ( VALUES ( Date[date] ), [Percentage] )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
3 years agoAnonymous , Create a measure like , Assuming we have common date table in this case
Sumx(Values(Date[date]), calculate(divide(Sum(Value1[total]), Sum(Value2[total]) )))
Anonymous
3 years agoNot applicable
it did ot work please check the other one https://community.powerbi.com/t5/DAX-Commands-and-Tips/Percentage-not-adding-up-when-selecting-mutliple-dates-on-slicer/td-p/2842283
this is my exact measure and calculation i want to use