Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I have a measure that calculates a % of 2 numebers. This measure is in a table.
I want to insert a card that calculates the AVERAGE of the values of this measure in the table.
I have a date slicer that changes these percentages and would like the Average to change accordingly.
Thank you in advance for your help.
Solved! Go to Solution.
Try Like
AVERAGEX(
SUMMARIZE(table,
table[Names],
"_hit",
sum([Hit (£m) P1]),
"_shown"
sum([Shown (£m) P1])
),
divide([_hit],[_shown])
)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
Thank you for your response @amitchandak
I get an error stating that the sum expression only accepts a column a an argument and both shown and Hit are measures.
Any way around this?
Share your formula. Also the calculation of any measure you want to use.
I tried to do this but it does not work as x and y are both measures.
x= quotes shown
y= winvalue
win% = x/y
and now I am trying to get an average of win% for each entry.
Name | Shown (measure) | hit (or win value) (measure | hit% or win% |
A | 100 | 50 | 50% |
B | 200 | 50 | 25% |
C | 300 | 100 | 33.3% |
D | 400 | 50 | 12.5% |
I need an average of this last column
I tried: but the answer is wrong compared to manually done on excel for testing.
User | Count |
---|---|
103 | |
87 | |
77 | |
70 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |