The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Due to I don't know your data model, I could only give you some advice.
Try to use or || not and && in IF function.
CTA_ADD VAR =
SUMX (
FILTER (
Filtered
IF (
ISFILTERED ( Gender[Gender] ),
[Gender] IN VALUES ( Gender[Gender] ),
TRUE ()
)
|| IF (
ISFILTERED ( PoC[PoC (USA Only)]),
[Race/Ethnicity] IN VALUES ( PoC[PoC (US ONLY)] ),
TRUE ()
)
),
[Total Partner Count (PME)]
)
Or you can try this measure:
CTA_ADD VAR =
VAR _SELECTGENDER = VALUES(Gender[Gender])
VAR _SELECTPOC = VALUES ( PoC[PoC (US ONLY)] )
RETURN
SUMX (
FILTER (
ALL('TABLE'),
TABLE[Gender] IN _SELECTGENDER &&
TABLE[PoC (US ONLY)]IN _SELECTPOC
),
[Total Partner Count (PME)]
)
If this reply still couldn't help you solve your problem, you can share a sample with me by your Onedrive for Business.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
77 | |
77 | |
36 | |
30 | |
28 |
User | Count |
---|---|
106 | |
96 | |
55 | |
49 | |
46 |