The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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}
)
User | Count |
---|---|
20 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
28 | |
12 | |
11 | |
9 | |
8 |