Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |