Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a metric which is appearring multiple times due to difference in value. What I wanted to do is to show the average of the activity. The below example will make it clear.
Year Actvity Value
1/1/2020 A 4
1/1/2020 A 8
1/1/2020 A 6
1/1/2020 B 7
1/1/2020 C 5
what i like is to show the value as,
for A we have to do an average
1/1/2020 A A - 6 (2020)
1/1/2020 B B - 7 (2020)
1/1/2020 c C - 5 (2020)
Solved! Go to Solution.
Hi, @Diptarup
Try to create a measure bleow:
_Result =
SELECTEDVALUE ( 'Table'[Activity] ) & "-"
& AVERAGEX ( 'Table', AVERAGE ( 'Table'[Value] ) ) & "("
& YEAR ( SELECTEDVALUE ( 'Table'[Year] ) ) & ")"
Sample:
Result:
Please check the sample file I attached for details.
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Diptarup
Try to create a measure bleow:
_Result =
SELECTEDVALUE ( 'Table'[Activity] ) & "-"
& AVERAGEX ( 'Table', AVERAGE ( 'Table'[Value] ) ) & "("
& YEAR ( SELECTEDVALUE ( 'Table'[Year] ) ) & ")"
Sample:
Result:
Please check the sample file I attached for details.
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Diptarup , Try a new measure like
averageX(filter(allselected(Table), table[Actvity] = max(table[Actvity])), [Value])
or
averageX(filter(allselected(Table), table[Actvity] = max(table[Actvity]) && table[Date] = max(table[Date])), [Value])
User | Count |
---|---|
103 | |
87 | |
77 | |
70 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |