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.
Hi @Anonymous
Its always bit difficult to give precised answer without sample data and expected output. It would helpful if you could share the same.
In the meantime can you try below code:-
2020 =
VAR current_selected_date =
MAX ( HDD[<Date column of your HDD table>] )
RETURN
CALCULATE (
SUM ( HDD[HDD] ),
YEAR ( HDD[<Date column of your HDD table>] )
= ( YEAR ( TODAY () ) - 1 ),
MONTH ( HDD[<Date column of your HDD table>] ) <= MONTH ( TODAY () )
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
User | Count |
---|---|
10 | |
9 | |
7 | |
4 | |
4 |