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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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