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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I've been using this DAX code below to produce a cumulative chart. In the past I've been using different query to separate the years, now felling more confident I would love too consolidate our reports into a single query using both 2018 - 2019 data together.
What is the best way to add filtering to the DAX code below to filter Cumulative value on one single Year?
value =
COUNTROWS (
FILTER (
ALL ( 'Implemented Changes' ),
[Week] <= MAX ( 'Implemented Changes'[Week] )
&& [Class] IN FILTERS ( 'Implemented Changes'[Class] )
)
)
Thank you,
Don
Solved! Go to Solution.
Hi @Anonymous ,
ALLEXCEPT should help you here.
value =
COUNTROWS (
FILTER (
ALLEXCEPT ( 'Implemented Changes', 'Implemented Changes'[year] ),
[Week] <= MAX ( 'Implemented Changes'[Week] )
&& [Class] IN FILTERS ( 'Implemented Changes'[Class] )
)
)
Hi @Anonymous ,
ALLEXCEPT should help you here.
value =
COUNTROWS (
FILTER (
ALLEXCEPT ( 'Implemented Changes', 'Implemented Changes'[year] ),
[Week] <= MAX ( 'Implemented Changes'[Week] )
&& [Class] IN FILTERS ( 'Implemented Changes'[Class] )
)
)
Hello Frank,
Thank you for your help, your code gets me closer to my objective.
I was looking to isolate each year in a separate Cumulative chart. I tired to alter your solution (see below) using the "= 2018" but didn't work.
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!