Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
jbbr111
New Member

Dax Filter - Two values in the filter from same column not rendering

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

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Change the && to || Smiley Happy

 

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! Smiley Happy

View solution in original post

1 REPLY 1
Sean
Community Champion
Community Champion

Change the && to || Smiley Happy

 

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! Smiley Happy

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.