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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I would like to know how to subtract the responding value from the average score in 2021 for all Name
sample data:
| Name | id | Date | Score |
| A | 1 | 1/9/2021 | 6 |
| B | 1 | 1/7/2021 | 7 |
| C | 1 | 2/8/2021 | 8 |
| A | 2 | 1/8/2022 | 9 |
| B | 2 | 1/6/2022 | 10 |
expected outcome:
| -2 |
| -1 |
| 0 |
| 1 |
| 2 |
Solved! Go to Solution.
Hi @Anonymous ,
Try formula like below:
Result =
'Table'[Score]
- CALCULATE (
AVERAGE ( 'Table'[Score] ),
ALLEXCEPT ( 'Table', 'Table'[Date].[Year] )
)
If the problem is still not resolved, please provide a screenshot of the desired result and describe it. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try formula like below:
Result =
'Table'[Score]
- CALCULATE (
AVERAGE ( 'Table'[Score] ),
ALLEXCEPT ( 'Table', 'Table'[Date].[Year] )
)
If the problem is still not resolved, please provide a screenshot of the desired result and describe it. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Create below measure and use it in your visual :
Thanks for your Kudos and please mark it as a solution if it helps
Sorry for confusing what i mean by all data is all name in a specific year, for example, only 2021
How about if i would like to to calculate the lastest difference by calculated measure instead of column? is it possible?
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!