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! Learn more
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
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.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |