Forum Discussion
luissanchez
8 years agoFrequent Visitor
Help with measure
Hello everyone, Please, I would need help with a measure. I would need a measure that multiplies the Ventas Act by Value Vent Act of each of the filter elements and then divides it by the sum of th...
- 8 years ago
Hi luissanchez,
You could create the three measures to get your desired output.
1.
Act_Measure = VAR temp = SUMX ( 'Sheet5', 'Sheet5'[Ventas Act] * 'Sheet5'[Valor Vent Act] ) RETURN DIVIDE ( temp, SUM ( 'Sheet5'[Ventas Act] ) )2.
Pas_measure = VAR temp = SUMX ( 'Sheet5', Sheet5[Velor Vent Pas] * 'Sheet5'[Ventas pas] ) RETURN DIVIDE ( temp, SUM ( Sheet5[Ventas pas] ) )3.
Measure = DIVIDE ( [Act_Measure] - [Pas_measure], [Act_Measure] )
Then you will get the result below.
Hope it can help you!:smileyhappy:
Best Regards,
cherry
v-piga-msft
8 years agoResident Rockstar
Hi luissanchez,
You could create the three measures to get your desired output.
1.
Act_Measure =
VAR temp =
SUMX ( 'Sheet5', 'Sheet5'[Ventas Act] * 'Sheet5'[Valor Vent Act] )
RETURN
DIVIDE ( temp, SUM ( 'Sheet5'[Ventas Act] ) )
2.
Pas_measure =
VAR temp =
SUMX ( 'Sheet5', Sheet5[Velor Vent Pas] * 'Sheet5'[Ventas pas] )
RETURN
DIVIDE ( temp, SUM ( Sheet5[Ventas pas] ) )
3.
Measure = DIVIDE ( [Act_Measure] - [Pas_measure], [Act_Measure] )
Then you will get the result below.
Hope it can help you!:smileyhappy:
Best Regards,
cherry
luissanchez
8 years agoFrequent Visitor
Thank you for your help.
It solved the problem.
:smileyvery-happy: