The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
51 | |
51 | |
46 |