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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

ALLEXCEPT issue

Hi Community,

 

I've read a few other posts about people having problem with ALLEXCEPT and I haven't been able to transfer what I've read to a working solution as yet.

 

I have the below DAX formula:

 

30_day_test =
CALCULATE(
[30 day Sell Through];
ALLEXCEPT(dim_model;dim_model[id_model];dim_model[Model (brand)])
)
 
In the below screenshot I have selected a filter that I do not want to affect my measure '30_day_test', hence the number should not match the column '30 Day STR' in the same table.
 
Is someone able to perhaps provide guidance please, I'm not sure if I am doing something wrong/not understanding the formula correctly?
 
Thanks in advance,
Phil
 
2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

What is the formula of  '30 Day STR', and if you could try to refer to this post:

https://community.powerbi.com/t5/Desktop/Make-measure-ignore-specific-filter/td-p/336870

If not your case, please share your sample pbix file.

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lili6-msft,

 

Here are the two formulas to make 30 Day Sell Through

 

30 day Sell Through =
CALCULATE([New In (#)];fact_published[thirtyd_sold_status] in {1};dim_date[is_past_thirty_days]=FALSE())
/
CALCULATE([New In (#)];fact_published[thirtyd_sold_status] in {1;3};dim_date[is_past_thirty_days]=FALSE())

 

 

New In (#) =

CALCULATE(DISTINCTCOUNT(fact_published[id_product]))

 

is_past_thirty_days is just a calculated column that returns True/False based on Today's date

 

EDIT: I looked at the post you suggested, the ALL makes sense - and Im trying to do the exact opposite, i.e. allow no filters except on two specific columns. Which is not working.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.