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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sehlola
Regular Visitor

Remove filters from a measure

Hi All

 

I am trying to get a full year budget using a measure. I have tried REMOVEFILTERS and ALL functions and they don't seem to work. What I am tring to ignore is the date slicer:

 

Annual Budget = CALCULATE(SUM('2023'[Value]),FILTER('2023','2023'[Type] = "Budget"),ALL('2023'[Formatted Date]))
 
The screenshot below shows that the annual budget stills returns the selected month's budget. Any help will be appreciated:
Sehlola_0-1709629990434.png

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @Sehlola 

Please try below DAX

 

Annual Budget = CALCULATE(SUM('2023'[Value]),REMOVEFITLER(Table[Month]),FILTER('2023','2023'[Type] = "Budget"))

 

Make sure you are using same filed in REMOVEFILTER which is using in Slicer



Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

View solution in original post

3 REPLIES 3
PijushRoy
Super User
Super User

Hi @Sehlola 

Please share your Data Model
Which field you are using in Slicer 
If possible create and share link for sample PBIX file 

PijushRoy
Super User
Super User

Hi @Sehlola 

Please try below DAX

 

Annual Budget = CALCULATE(SUM('2023'[Value]),REMOVEFITLER(Table[Month]),FILTER('2023','2023'[Type] = "Budget"))

 

Make sure you are using same filed in REMOVEFILTER which is using in Slicer



Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

Unfortunately it still gives me the same result.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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