Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
How to subtract the responding value from the average score in 2021(In this small sanmple data,i.e average of bolding numbers) 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:
-1 |
0 |
1 |
2 |
3 |
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Expected outcome measure: =
VAR _avg2021 =
AVERAGEX (
ADDCOLUMNS (
FILTER ( ALL ( Data ), YEAR ( Data[Date] ) = 2021 ),
"@score", [Score measure:]
),
[@score]
)
RETURN
IF ( HASONEVALUE ( Data[Name] ), [Score measure:] - _avg2021 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
Expected outcome measure: =
VAR _avg2021 =
AVERAGEX (
ADDCOLUMNS (
FILTER ( ALL ( Data ), YEAR ( Data[Date] ) = 2021 ),
"@score", [Score measure:]
),
[@score]
)
RETURN
IF ( HASONEVALUE ( Data[Name] ), [Score measure:] - _avg2021 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |