This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 25 | |
| 25 |