Forum Discussion
Getting Average Per category
Hi,
Can someone help me? I need to create a visual that displays the average per category? and need to create columns/measures?
Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
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
2 Replies
- lbendlinSuper User
Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
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 - AnonymousNot applicable
Hi lennox25
Is this the result you want, I use No as the numerator and count as the denominator, here is the measure code
Avg_ = DIVIDE(SUMX(FILTER(ALL('Table (3)'),'Table (3)'[Ca]=SELECTEDVALUE('Table (3)'[Ca])),[No]),SUMX(FILTER(ALL('Table (3)'),'Table (3)'[Ca]=SELECTEDVALUE('Table (3)'[Ca])),[Count]))
Best Regards,
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.