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! Request now

Reply
Tuan
Helper III
Helper III

Measure - Excluding filter from Filter Pane

Hello,

 

I can't seem to figure this one out. I'm trying to use a measure that excludes a filter on the Filter Pane. I'm creating product cards in which I select one product at a time.  I'm trying to calcualte the Velocity of each product by the total stores in which products are. I actually only one to exclude the Product filter which is why I use Allexcept.

 

 

Stores All Products = 
CALCULATE (
    DISTINCTCOUNT ( Store_List[Store Name] ),
    FILTER (
        ALLEXCEPT (
            'Daily Data',
            Store_List[WFM REGION],
            Store_List[STORE NAME],
            'Calendar'[Date]
        ),
        'Daily Data'[Net_Sales] > 0
    )
)

 

6 REPLIES 6
Icey
Community Support
Community Support

Hi @Tuan ,

 

How about this?

Stores (All Products) = 
CALCULATE (
    DISTINCTCOUNT ( DimStore[Store] ),
    FILTER ( ALL ( DimProduct[Product]), [Net Sales] > 0 )
)

produc.PNG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That doesn't quite work as it gives me Store count for zero sales weeks, I believe the net sales >0 part of the formula is not working correction as shown by the picture below. I got it to work using the formula below. For some reason it doesn't work on my actual data, maybe due to my connections, which im still trying to figure out.

 

New link with my live calendar

https://drive.google.com/file/d/1hxEgV-ZYCWUJ2OBkoqiWDGb-UkBsasph/view?usp=sharing

 

Tuan_0-1599090324971.png

 

 

Stores (All Products) 2 = 
CALCULATE (
    DISTINCTCOUNT ( DimStore[Store]),
    FILTER (
        ALLEXCEPT (
            'FactData',
            'DimStore'[Region],
            'DimDate'[Week]
        ),
        [Net Sales] > 0
    )
)

 

 

 

 

amitchandak
Super User
Super User

@Tuan , Try like

  Stores All Products = 
Sumx (filter(Summarize(  'Daily Data',
            Store_List[WFM REGION],
            Store_List[STORE NAME],
            'Calendar'[Date] , "_1",
    DISTINCTCOUNT ( Store_List[Store Name] ) ),
        [_1] > 0
    ),[_1]
)
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Giving me a incorrect number. Still trying to figure it out. Main issue is that my date filter is not being corrupted excluded.

@Tuan , Can you share sample data and sample output in table format?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors