Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Measure !!
VPY = CALCULATE(BUF_DATAMART_V[AMOUNT_USD_ACTUAL],BUF_DATAMART_V[CURRENT_YEAR]=YEAR(TODAY())-2)-CALCULATE(BUF_DATAMART_V[AMOUNT_USD_ACTUAL],BUF_DATAMART_V[CURRENT_YEAR]=YEAR(TODAY())-3)
This meaure is working but manually need to change the prior years(like -2, -3 .. etc )
Every time I dont want to change the years manually like -2 and -3, i want update dynamically that numbers( am subtracting here by using that numbers). please help me asap.
Solved! Go to Solution.
Hi, @anjanikumar ;
You could create a what-if table ,then create a measure.
1.create a what-if table
Parameter = GENERATESERIES(0, 10, 1)
2.create a measure .
VPY =
CALCULATE (
[MOUNT_USD_ACTUAL1],
FILTER('Table', 'Table'[CURRENT_YEAR]
= YEAR ( TODAY () ) - [Parameter Value]))-
CALCULATE (
[MOUNT_USD_ACTUAL1],
FILTER('Table', 'Table'[CURRENT_YEAR]
= YEAR ( TODAY () ) - [Parameter Value]-1))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @anjanikumar ;
You could create a what-if table ,then create a measure.
1.create a what-if table
Parameter = GENERATESERIES(0, 10, 1)
2.create a measure .
VPY =
CALCULATE (
[MOUNT_USD_ACTUAL1],
FILTER('Table', 'Table'[CURRENT_YEAR]
= YEAR ( TODAY () ) - [Parameter Value]))-
CALCULATE (
[MOUNT_USD_ACTUAL1],
FILTER('Table', 'Table'[CURRENT_YEAR]
= YEAR ( TODAY () ) - [Parameter Value]-1))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@anjanikumar Perhaps use a parameter in a slicer and use SELECTEDVALUE in your formula? Otherwise, not really enough to go on.
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 |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |