Forum Discussion
Anonymous
4 years agoNot applicable
date diff-row count if condition apply
Dear Friends i have two dates column date1 and date2, and calculatting the difference by measure by comparing constant value Z=3: Measure = var z=3 VAR diff=SUMX(Sheet1,DATEDIFF...
- 4 years ago
Rename your current measure to be Measure Individual and then create a new measure
Measure = IF( ISINSCOPE( 'Table'[date1]), [Measure Individual], SUMX( ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[date1], 'Table'[date2]), "@val", [Measure Individual] ), [@val] ) )
johnt75
4 years agoSuper User
Rename your current measure to be Measure Individual and then create a new measure
Measure = IF( ISINSCOPE( 'Table'[date1]), [Measure Individual],
SUMX( ADDCOLUMNS( SUMMARIZE( 'Table', 'Table'[date1], 'Table'[date2]),
"@val", [Measure Individual] ),
[@val] )
)