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
joshua1990
Post Prodigy
Post Prodigy

REMOVE filter from different Visual using DAX

I have a report that shows 2 visuals.

The first one displays the top 10 Sales for the current week on the article level as a matrix. There is a filter on this visual using a week offset.

The second visual shows the Sales overall (not article level) for the current year on a weekly level (axes).

 

The measure for Sales is a simple SUM measure : Sales = SUM(Sales[Value])

 

Now, I would like to click in the matrix on an article. Then the second visual should be filtered to this code.

When I do it now, just the current week is displayed in the second visual, but I need them all.

 

What kind of measure do I need in the second visual to display always all weeks but when selecting 1 article in the matrix this is filtered in the visual?

Adding ALL doesn't help here:

CALCULATE(SUM(Sales[Value]), ALL (Calendar))

 

 

2 REPLIES 2
VahidDM
Super User
Super User

Hi @joshua1990 

 

Can you share a sample of your data?

BTW, try this:

CALCULATE(SUM(Sales[Value]), removefilters(Week))

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

@VahidDM : Thanks for your support. Currently, I am not able to provide an example. 

But using your approach doesn't work. 

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.

Top Solution Authors