Forum Discussion
row value to column value and find difference
- 6 years ago
Hi Anonymous
Create a measure
Measure = IF ( ISINSCOPE ( 'Table 3'[ Col2 ] ), SUM ( 'Table 3'[ Col3] ), CALCULATE ( SUM ( 'Table 3'[ Col3] ), FILTER ( 'Table 3', 'Table 3'[ Col2 ] = "WK5" ) ) - CALCULATE ( SUM ( 'Table 3'[ Col3] ), FILTER ( 'Table 3', 'Table 3'[ Col2 ] = "WK4" ) ) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
Create a measure
Measure =
IF (
ISINSCOPE ( 'Table 3'[ Col2 ] ),
SUM ( 'Table 3'[ Col3] ),
CALCULATE (
SUM ( 'Table 3'[ Col3] ),
FILTER ( 'Table 3', 'Table 3'[ Col2 ] = "WK5" )
)
- CALCULATE (
SUM ( 'Table 3'[ Col3] ),
FILTER ( 'Table 3', 'Table 3'[ Col2 ] = "WK4" )
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Great appreciated .... is it possible to fill the blanks as zero ?
- v-juanli-msft6 years agoCommunity Support
Hi
Since there is no row for the blank cell in your original data, it can't add 0 in current data model.
except we create another data model.
Best Regards
Maggie
- Anonymous6 years agoNot applicable
Hi @v-juanli-msft
is it possible to change name of total to Differnce along with that one more difference column WK5 - ( Avg of past weeks) ? Appreciate your help . Thanks