Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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!