Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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}
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |