Refining Filter Context With ALL Function

[EDIT] … PBIX file uploaded

Goals & Metrics EDNA.pbix (312.6 KB)

I need some help refining my ALL function call so it is more targeted about it’s clearing of the filter context.

These are the elements I’m working with

  • Month slicer … allows the user to select a month.
  • PlacementType Slicer … allows user to select from these PlacementTypes.
  • Consultants on Billing … measure that I am creating.

This screenshot is just those elements. The main report has several more measures. I created this just to keep it simple.

The report is a month by month report, hence the month slicer. We also want to filter by PlacementType. Keeping PlacementType is my challenge.

This is the measure I have thus far. It returns the correct number of ‘Consultants on Billing’. However, due to the user of ALL(Placement) it is not going to honor the PlacementType slicer.

Consultants on Billing =
FILTER(ALL(Placement),Placement[PlacementStatus] = “Approved”)

I’ve attempted a few ways to refine this. This was my last attempt.

Test Consultants on Billing =
Placement[PlacementStatus] = “Approved”
Placement[PlacementDate] <= MAX(‘Date’[Date])

Basically, I’m trying to get all that are “Approved” while specifically eliminating the date slicer filter context. However, it returns 1 instead of the 208 that it should.

Any insight on using ALL in this situation or a suggestion of a different direction to go?

I can build a stripped down, anonymized version of the PBIX if it will help.

Hi @qholmberg

I noticed you didn’t provide a PBIX file. Providing one will help users and experts find a solution to your inquiry faster and better.

A perfect initial question includes all of the following:

  • A clear explanation of the problem you are experiencing
  • A mockup of the results you want to achieve
  • Your current work-in-progress PBIX file
  • Your underlying data file (to allow us to go into Power Query if necessary to transform your data and/or data model – often DAX questions really end up being data modeling solutions)

Check out this thread on Tools and Techniques for Providing PBIX Files with Your Forum Questions

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Not completing your data may sometimes cause delay in getting an answer.

Thank you!

A PBIX file has been added to the post.

I found that I was making this much more difficult than it needed to be.

Here is the solution. …

Consultants on Billing =
Placement[PlacementStatus] = “Approved”

1 Like