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 all
I need to calculate the TOTALMTD , based on the year the user filter.
I have year as filter, and I want to calculate a measure that will show TOTALMTD depending on the year the user filter.
My measure :
CALCULATE (TOTALMTD(COUNTROWS(Table), Table [DataN], USERELATIONSHIP('Date'[Date], Table [DataN])))
So, if current year, 2023, is selected works fine , but when I choose 2022 I get always blank
I have tried several options , dateadd, sameperiodlastyear, PARALLELPERIOD , but I never got the correct number from the previous year.
Any tips help will be very welcome as I can’t solve this alone
Thanks !
Solved! Go to Solution.
Hi @pmargari ,
Please refer to my pbix file to see if it helps you.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @pmargari ,
Please refer to my pbix file to see if it helps you.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Community Support ,this is exactly what I need ,thanks a lot for your help !
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!
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |