Forum Discussion

Kavya_2001's avatar
Kavya_2001
Icon for Advocate I rankAdvocate I
1 year ago
Solved

Count records from Direct query table excluding records which are available in import mode table

Hello Everyone, Greetings, I have below two tables 1. Fact_stores table with has columns Storeid, Storelocation, Zipcode - (Direct Mode ) 2. Exclude_stores table which has Storeid column - (Imp...
  • Abhilash_P's avatar
    1 year ago

    Hi Kavya_2001 ,
    You can create a measue as below

    CALCULATE (
    COUNT(Fact_stores[Storeid]),
        KEEPFILTERS (
            NOT 'Fact_stores'[Storeid] IN VALUES ('Exclude_stores'[Storeid])  
        )
    )

    Let me know if these measure works
    Thanks