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

Show all the stores where response rate is average of it

I have Stores and corresponding Response Rate,i want to show all the Stores where Response Rate is greater than the average of Response Rate
i.e. average of Response rate=0.43 , then Store 2 and Store 3 should be display on  the map.
I tried 

Measure = COUNTROWS(FILTER('Table','Table '[Response Rate]>AVERAGE('Table '[Response Rate])))
which give the count but i need to show the store.
How to implement that?
StoreResponse Rate
10.1
20.5
30.7
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

Measure 2 = 
VAR Avg_ =
    CALCULATE (
        DIVIDE ( SUM ( 'Table'[Response Rate] ), DISTINCTCOUNT ( 'Table'[Store] ) ),
        ALLSELECTED ( 'Table' )
    )
RETURN
    IF ( SUM ( 'Table'[Response Rate] ) > Avg_, 1, 0 )

avg.JPG

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

Measure 2 = 
VAR Avg_ =
    CALCULATE (
        DIVIDE ( SUM ( 'Table'[Response Rate] ), DISTINCTCOUNT ( 'Table'[Store] ) ),
        ALLSELECTED ( 'Table' )
    )
RETURN
    IF ( SUM ( 'Table'[Response Rate] ) > Avg_, 1, 0 )

avg.JPG

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

 

camargos88
Community Champion
Community Champion

@Anonymous ,

 

You want to count the number os stores above the average ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



camargos88
Community Champion
Community Champion

@Anonymous ,

 

You can use this measure and filter the visual:

Measure = IF(SUM('Table'[Response Rate]) > CALCULATE(AVERAGE('Table'[Response Rate]), ALL('Table'[Store])), 1, 0)


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

@camargos88 This solution works but i want the average as a contant.i.e. if i have 100 of stores then it will do average of 100 of stores,then it will show the stores which is greater than average of the Response Rate.

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.