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.
YTD New TIV Policy Effective Date :=
CALCULATE (
SUM ( 'FactPolicyCoverage'[CoverageAmount] ),
DATESYTD ( 'PolicyEffectiveDimDay'[PolicyEffectiveDayDate] ),
'DimNewRenewal'[NewRenewalStatus] = "New",
FILTER (
'DimCoverageLimit',
'DimCoverageLimit'[CoverageLimitDescriptionName]
= "Building & Business Personal Property Limit"
&& 'DimCoverageLimit'[CoverageLimitDescriptionName] = "Business Income Limit"
)
)
Trying to filter a column with more then one value being filtered - tried using calculatetable and Filter
If I eliminate one of the values in the filter or in the calculatetable it works - it does not work with two
what am I dong wrong
New to Dax
Thanks for any help
Solved! Go to Solution.
Change the && to ||
YTD New TIV Policy Effective Date := CALCULATE ( SUM ( 'FactPolicyCoverage'[CoverageAmount] ), DATESYTD ( 'PolicyEffectiveDimDay'[PolicyEffectiveDayDate] ), 'DimNewRenewal'[NewRenewalStatus] = "New", FILTER ( 'DimCoverageLimit', 'DimCoverageLimit'[CoverageLimitDescriptionName] = "Building & Business Personal Property Limit" || 'DimCoverageLimit'[CoverageLimitDescriptionName] = "Business Income Limit" ) )
Its the same column it can't have both values at the same time but it can be either OR
Hope this helps!
Change the && to ||
YTD New TIV Policy Effective Date := CALCULATE ( SUM ( 'FactPolicyCoverage'[CoverageAmount] ), DATESYTD ( 'PolicyEffectiveDimDay'[PolicyEffectiveDayDate] ), 'DimNewRenewal'[NewRenewalStatus] = "New", FILTER ( 'DimCoverageLimit', 'DimCoverageLimit'[CoverageLimitDescriptionName] = "Building & Business Personal Property Limit" || 'DimCoverageLimit'[CoverageLimitDescriptionName] = "Business Income Limit" ) )
Its the same column it can't have both values at the same time but it can be either OR
Hope this helps!
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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
106 | |
105 | |
86 | |
72 |