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
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.