Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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])
,CCRS[FileSource] = "Activations"
,CCRS[GrossReturnsChargebacks] = "GROSS"
,Stores[Region] <> "Subagent Region"
)I want to include IDs 1245, 2306 and 1004 in the calculation but they are part of "Subagent Region". Is there a way to include them but still filter Region <> "Subagent Region"?
Solved! Go to Solution.
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}
)
@rcss 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
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}
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |