Forum Discussion
AllanBerces
2 years agoPost Prodigy
Sum - Calculated Column
Hi good day, Can anyone help me on my calculated column on how to arrived on my desired outcome. Current Table Desired Outcome adding calculated column Thank you
- 2 years ago
Hi,
Please try something like below (the picture and the attached pbix file).
desired outcome CC = SUMX ( FILTER ( SUMMARIZECOLUMNS ( data[date], data[location], data[trade], data[week_no], data[count] ), data[date] = EARLIER ( data[date] ) && data[location] = EARLIER ( data[location] ) ), data[count] )
Jihwan_Kim
2 years agoSuper User
Hi,
Please try something like below (the picture and the attached pbix file).
desired outcome CC =
SUMX (
FILTER (
SUMMARIZECOLUMNS (
data[date],
data[location],
data[trade],
data[week_no],
data[count]
),
data[date] = EARLIER ( data[date] )
&& data[location] = EARLIER ( data[location] )
),
data[count]
)
AllanBerces
2 years agoPost Prodigy