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
victormarconis
Frequent Visitor

I can't remove a filter from a measurement

I have a matrix, I have a product and below are the branches. I have the stock column, it looks perfect and I have a product demand column. When I do a cross filter with a table on the side, in this matrix, it filters the product (so far so good), but the stock column remains and the demand is filtered only by the branch of the clicked product.

What I don't understand is why the stock one doesn't filter and the demand one does.

I need you not to filter the branch in this demand, below I will send the measure of the demand and a print of the columns. Inventory column is just sum(column).


demandmonth =
VAR _valorlinha = CALCULATE(MAX(entradas[demandames]))
VAR _valormatriz = CALCULATE(SUMX(VALUES(entradas[demandames]), CALCULATE(MAX(entradas[demandames]))))
VAR _contexto = ISINSCOPE('apresentaçao'[apresentacao])
VAR _contexto2 = ISINSCOPE(filial[nome])
VAR _contexto3 = ISINSCOPE(produto[produtofab])

RETURN
CALCULATE(SWITCH(
    TRUE,
    _contexto2, _valormatriz,
    _contexto3, _valorlinha,
    _contexto, _valormatriz,
    "Outro"))

victormarconis_0-1691772799745.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @victormarconis ,

Please try to use REMOVEFILTERS() function, it will clear filters from the specified tables or columns.

 

For more details, you can read related document: REMOVEFILTERS function (DAX) - DAX | Microsoft Learn

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.