Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a matrix visual with 4 levels and the total row should show percentage Average of Score
Calculations Used :
1. DIV = Quantity/Target Quantity
2. Score = if DIV >1 then 1 else DIV
3. Score % = % of Score
I have used the AverageX and AverageX with HASONE functions, but, my results do not work with neither of them.
Since it appears that you are doiing your division at a row level, I decided to create a calculated column and then find an average of that.
Calculated Column
_DIV =
VAR _Div =
DIVIDE(
[Quantity],
[Target Quantity]
)
VAR _Logic =
IF(
_Div > 1,
1,
_Div
)
RETURN
_Logic
Measure
DIV = AVERAGE( Table1[_DIV] )
Let me know if you have any questions.
To get average in the Total row instead of sum.pbix
This is giving me blanks. Please advise on something else
Can you create a pbix for me to work with?
1) Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
2) Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
3) Please explain how you would expect to get from step 1 to 2.
4) If possible, please show your past attempts at a solution.
I hope this helps.
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |