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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rithu
Frequent Visitor

Urgent Help : Remove filter from a MEASURE using DAX

I need to remove a filter from a measure. 

 

I have 3 tables - REPO, ISSUES and DATES

 

I have a column chart X is district and Y is this measure ( Issue Rate )

 

In Report table -

DAX 1 - measure

Issue Rate = CALCULATE( DIVIDE( COUNTA(ISSUES[type]), DISTINCTCOUNT(REPO[id])))

 

DAX 2 - CALCULATED COLUMN TO FILTER THE CURRENT WEEK 

 

Latest Week Check = IF(AND(REPO[Week]<LOOKUPVALUE('Dates'[Fiscal Week],'Dates'[Day],REPO[Today]),REPO[ Week]>=DATE(YEAR(REPO[Current Week]),MONTH(REPO[Current Week]),DAY(REPO[Current Week]))-7), "YES", "NO")

 

To filter the column chart to show the current week data I have added this caculated colum to filters pane and Selected "YES"

 

Now, I am creating a new tool tip that removes Latest Week Check filter and show the entire data for all the weeks

 

TOOL TIP 

X is REPO[Week]
Y is Issue Rate All (New measure to remove the filter)

 

Issue Rate All = calcualate (REPO[Issue Rate], Removefilters[repo[Latest Week Check])

 

I have tried different variations for this ISSUE RATE ALL DAX  - REMOVEFILTERS, ALL, ALLEXCEPT. Nothing seems to work I am not sure what column to use also. Let me know where I am going wrong or any other workarouds. Thank you so much. 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @rithu 

Create a Slicer Table that of a single column that contains "Yes" and "No" and link it to the Latest Week Check column and use it in the slicer. The the tooltip measure would be

Issue Rate All =
CALCULATE (
[Issue Rate],
CROSSFILTER ( REPO[Latest Week Check], SlicerTable[Last Week Check], NONE )
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @rithu 

Create a Slicer Table that of a single column that contains "Yes" and "No" and link it to the Latest Week Check column and use it in the slicer. The the tooltip measure would be

Issue Rate All =
CALCULATE (
[Issue Rate],
CROSSFILTER ( REPO[Latest Week Check], SlicerTable[Last Week Check], NONE )
)

rithu
Frequent Visitor

It worked. Thank you so much

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.