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!View all the Fabric Data Days sessions on demand. View schedule
I want a meassure with accumulated totals to be affected by a Slicer.
Solved! Go to Solution.
Hi @Anonymous
The best solution for you is to add a date table to your model and set your date filter by using that table, BTW, try this:
Titles_released_acumulated_total =
VAR _Genre =
SELECTEDVALUE ( game_info[Genre] )
RETURN
CALCULATE (
COUNT ( game_info[Genre] ),
FILTER (
ALL ( game_info ),
game_info[Date2] <= MAX ( game_info[Date2] )
&& game_info[Genre] = _Genre
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi @Anonymous
The best solution for you is to add a date table to your model and set your date filter by using that table, BTW, try this:
Titles_released_acumulated_total =
VAR _Genre =
SELECTEDVALUE ( game_info[Genre] )
RETURN
CALCULATE (
COUNT ( game_info[Genre] ),
FILTER (
ALL ( game_info ),
game_info[Date2] <= MAX ( game_info[Date2] )
&& game_info[Genre] = _Genre
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Thank you so much. You saved me. The code works perfectly. I have a calendar table so I will try to adjust your code for that.
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!