Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Measure calculating average of groups based on another column

Capture.PNG

Hi All,

I have two columns (Store and State) and a measure Store-Value.  I need to calculate a measure State-Value (Average of Store-Value in a given state). 

 

In my report I have both store and state as a filter. I want to make sure when I select  stores in a state, state-value  still shows the average vaule of that state. For example: when I filter store A, State-value should still show 20 and not 10.

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try something like
Calculate(divide(measure,count(table[state])),allexcept(table,table[state]))

If it didn't worked try all function.



Thanks
Pravin Wattamwar

If it resolves your problem mark it as a solution and give Kudos.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Try something like
Calculate(divide(measure,count(table[state])),allexcept(table,table[state]))

If it didn't worked try all function.



Thanks
Pravin Wattamwar

If it resolves your problem mark it as a solution and give Kudos.
Anonymous
Not applicable

@Anonymous  Thanks for your solution. 

 

Calculate(divide(measure,count(table[state])),allexcept(table,table[state]))  works for me. 

 

 

Anonymous
Not applicable

Try allselected as well..

N please share your issue screenshot. So that it will be easy to understand your issue.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors