Forum Discussion
rcss
3 years agoFrequent Visitor
Include values that got filtered out
Hi, I have a working measure but it is filtering out some values that I want to be included in the calculation. GADeviceBaseCommssions =
CALCULATE(SUMX(CCRS, CCRS[Commission] + CCRS[AdtlComm])
...
- 3 years ago
Thank you Greg_Deckler . You gave me idea for my calculation. This one works for me and I get the right calculation.
GADeviceBaseCommssions = CALCULATE(SUMX(CCRS, CCRS[Commission] + CCRS[AdtlComm]) ,CCRS[FileSource] = "Activations" ,CCRS[GrossReturnsChargebacks] = "GROSS" ,Stores[Region] <> "Subagent Region" || Stores[ID] IN {1245, 2306, 1004} )
Greg_Deckler
Community Champion
3 years agorcss Maybe:
GADeviceBaseCommssions =
CALCULATE
SUMX(CCRS, CCRS[Commission] + CCRS[AdtlComm]),
FILTER(
'CCRS',
'CCRS'[ID] IN { 1245, 2306, 1004 } ||
'CCRS'[FileSource] = "Activations" && 'CCRS'[GrossReturnsChargebacks] = "GROSS" &&
'Stores'[Region] <> "Subagent Region"
)
)
or
GADeviceBaseCommssions =
VAR __Table =
FILTER(
'CCRS',
'CCRS'[ID] IN { 1245, 2306, 1004 } ||
'CCRS'[FileSource] = "Activations" && 'CCRS'[GrossReturnsChargebacks] = "GROSS" &&
'CCRS'[Region] <> "Subagent Region"
)
VAR __Result = SUMX(__Table, CCRS[Commission] + CCRS[AdtlComm])
RETURN
__Result
- rcss3 years agoFrequent Visitor
Thank you Greg_Deckler . You gave me idea for my calculation. This one works for me and I get the right calculation.
GADeviceBaseCommssions = CALCULATE(SUMX(CCRS, CCRS[Commission] + CCRS[AdtlComm]) ,CCRS[FileSource] = "Activations" ,CCRS[GrossReturnsChargebacks] = "GROSS" ,Stores[Region] <> "Subagent Region" || Stores[ID] IN {1245, 2306, 1004} )