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.
What i intend is to have an accumulate that sums all years that are equal or inferior to the selected year. For instance, if i select 2021, then i want to count all years that come before 2021 plus 2021 itself.
The problem is that the metric i created is filtering only the year selected, not the previous years as well.
This is an example formula for the intended logic:
NumEmp_2021:=
calculate(DISTINCTCOUNT('fact table'[NIF]),
filter('Fact table',
year('Fact table'[Employment Date]) <= 2021
&& ('Fact table'[Resignation Date] = BLANK() || (year('fact table'[Resignation Date]) >=2021))))
How can i adapt this to select the filtered year plus all the years that come before that?
Thanks in advance
@Ines_Raquel Try: Better Running Total - Microsoft Power BI Community
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |