PShingadia
New Member
- Joined
- Aug 5, 2015
- Messages
- 47
Hi All:
I am relatively new to DAX and having issues arriving at a total for a measure. The measure is:
Result:=DIVIDE([Value], [Factor])
[Value] and [Factor] are two measures calculated in the model and work fine and trying to achieve Result by dividing one by the other. Result total shows at 221 with row context applying but need it to show actual sum which is 59.
[TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl63, width: 64"]Value[/TD]
[TD="class: xl63, width: 64"]Factor[/TD]
[TD="class: xl63, width: 64"]Result[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] -[/TD]
[TD="class: xl64"] 260.97[/TD]
[TD="class: xl68"] -[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 190[/TD]
[TD="class: xl64"] 31.66[/TD]
[TD="class: xl68"] 6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 2[/TD]
[TD="class: xl64"] 5.91[/TD]
[TD="class: xl68"] 0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 14[/TD]
[TD="class: xl64"] 14.71[/TD]
[TD="class: xl68"] 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 14[/TD]
[TD="class: xl64"] 0.29[/TD]
[TD="class: xl68"] 49[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl70"] 1[/TD]
[TD="class: xl71"] 0.38[/TD]
[TD="class: xl72"] 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]Total[/TD]
[TD="class: xl67"] 221[/TD]
[TD="class: xl65"] 1.00[/TD]
[TD="class: xl69"] 221[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for any help
I am relatively new to DAX and having issues arriving at a total for a measure. The measure is:
Result:=DIVIDE([Value], [Factor])
[Value] and [Factor] are two measures calculated in the model and work fine and trying to achieve Result by dividing one by the other. Result total shows at 221 with row context applying but need it to show actual sum which is 59.
[TABLE="width: 256"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl63, width: 64"]Value[/TD]
[TD="class: xl63, width: 64"]Factor[/TD]
[TD="class: xl63, width: 64"]Result[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] -[/TD]
[TD="class: xl64"] 260.97[/TD]
[TD="class: xl68"] -[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 190[/TD]
[TD="class: xl64"] 31.66[/TD]
[TD="class: xl68"] 6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 2[/TD]
[TD="class: xl64"] 5.91[/TD]
[TD="class: xl68"] 0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 14[/TD]
[TD="class: xl64"] 14.71[/TD]
[TD="class: xl68"] 1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl66"] 14[/TD]
[TD="class: xl64"] 0.29[/TD]
[TD="class: xl68"] 49[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="class: xl70"] 1[/TD]
[TD="class: xl71"] 0.38[/TD]
[TD="class: xl72"] 3[/TD]
[/TR]
[TR]
[TD="class: xl63"]Total[/TD]
[TD="class: xl67"] 221[/TD]
[TD="class: xl65"] 1.00[/TD]
[TD="class: xl69"] 221[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for any help
Last edited: