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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

DAX Measures ALL, REMOVEFILTERS

Greetings.

I have a filter slicer with year, month and week number of year.
From a week selection (lets say 38 which is a week in September) I need a visual to show all the applications made in that month.
If I select a week in August I want all applications made in August regardless of the week.

doris00_0-1663663997181.png

This is for September, week 38

doris00_1-1663664050292.png

I've used ALLSELECTED to keep the filter coming from the year and the month, but I want to remove filter from the weeknumberofyear.

Yet it doesn't work.


I have tried REMOVEFILTERS as well to weeknumber column but it is not working.
Can you share some thoughts?

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Instead of a hierarchical slicer We created 2 slicers, one having year and month, and the other having weeknumber of year.
The 2nd slicer does not affect total monthly applications after we modified in Edit Interactions

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Instead of a hierarchical slicer We created 2 slicers, one having year and month, and the other having weeknumber of year.
The 2nd slicer does not affect total monthly applications after we modified in Edit Interactions

Anonymous
Not applicable

Below is the DAX Code generated by Performance Analyzer

johnt75
Super User
Super User

Its possible that another column correlated to the week number is being added to the filter context. Use Performance Analyzer to copy the DAX code generated for the visual and examine it in DAX Studio, that should tell you which columns are being used as filters and which are being used in the calculation.

Its particulalry common for additional filters to be added with fields from a date table, as lots of columns are sorted by another column, and those sort by columns are also included in the results.

Anonymous
Not applicable

This is the DAX Code generated.

doris00_0-1663668997838.png

 


I'm not sure if this dimdate[Order] is causing the issue or something else.

I added 

REMOVEFILTERS(Dimdate[Order]) 
But it didn't resolve the issue.

Try replacing the ALLSELECTED on Year and month name, and the ALL on week number, with ALLEXCEPT(DimDate, DimDate[CalendarYear], DimDate[Albanian Month Name])

Anonymous
Not applicable

Still it doesn't work.

doris00_0-1663676429526.png

I cant get rid of the weeknumber filter.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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