Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I am trying to create some visuals where my users will be able to compare the latest data to any point in time using a slicer.
I am trying to create a measure that filters to only count rows of my table that are equal to the MAX date in that table which I can do and looks like this:
Solved! Go to Solution.
Try adding and ALL() filter to your CALCULATE statement. CALCULATE is the only function that can modify the filter context created by things like slicers.
Test = CALCULATE(COUNT(Data[Emp Count]),ALL(Data),(filter(Dates,Dates[Date]=max(Data[Month]))))
I learn something every time I answer a question
I'm a personal Power BI trainer
Help when you know. Ask when you don't!
Try adding and ALL() filter to your CALCULATE statement. CALCULATE is the only function that can modify the filter context created by things like slicers.
Test = CALCULATE(COUNT(Data[Emp Count]),ALL(Data),(filter(Dates,Dates[Date]=max(Data[Month]))))
I learn something every time I answer a question
I'm a personal Power BI trainer
Help when you know. Ask when you don't!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 48 | |
| 45 |