Forum Discussion
DAX FILTER
- 4 years ago
Hello there spandy34 ! Hope this works for you!
ztest_StopLoss__Open_EL_PL = COUNTROWS ( CALCULATETABLE ( 'Main Claim Data Distinct', 'Main Claim Data Distinct'[DBA_VW5_STATUS_FLAG_LOOKUP.Description] = "Open", 'Main Claim Data Distinct'[ClassOfBusinessCode] IN { "EL", "PL" } && NOT ( 'Main Claim Data Distinct'[PolicyCode] ) IN { "CO", "LPP", "LPL", "AS", "HD", "LEL", "ML", "PI", "TEL", "TP" } && 'Main Claim Data Distinct'[SourceCode] <> "INS" ) )Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
The issue is that the calculation is not filtering out those records that contain the letters CO", "LPP", "LPL", "AS", "HD", "LEL", "ML", "PI", "TEL", "TP". These are not exact contents they are contains is ML30LPL, M26TEL, TP52OAJ
Just wondered if anyone could review my measure and see where Im going wrong
Hello there spandy34 ! Hope this works for you!
ztest_StopLoss__Open_EL_PL =
COUNTROWS (
CALCULATETABLE (
'Main Claim Data Distinct',
'Main Claim Data Distinct'[DBA_VW5_STATUS_FLAG_LOOKUP.Description] = "Open",
'Main Claim Data Distinct'[ClassOfBusinessCode]
IN { "EL", "PL" }
&& NOT ( 'Main Claim Data Distinct'[PolicyCode] )
IN { "CO", "LPP", "LPL", "AS", "HD", "LEL", "ML", "PI", "TEL", "TP" }
&& 'Main Claim Data Distinct'[SourceCode] <> "INS"
)
)
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes