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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## Simple Average/SUMMARIZE dax function

Hello,

I am using a AVERAGEX(SUMMMARIZE formulat to get an avg for a net promoter type calculation by month. I am also showing the percentage of each response and bucketing those in happy, mad, or passive customers each month. The percentages should tie back to the net promoter score. For instance if the net promoter score is 22% then happy customers minus mad customers should equal 22%. However, since I am doing the average any month that has no values is excluded from the average for the percentage breakdown. I am thinking that my issue is similar to this one&nbsp;https://community.powerbi.com/t5/Desktop/including-blanks-in-an-average-with-summarize/td-p/332922.
1 ACCEPTED SOLUTION
Employee

Hi @nmckbcs,

Please refer to below measure:

```AVG_Category_Breakdown2 =
SUMX ( VALUES ( 'download to use'[Month] ), [Category_Breakdown] )
/ CALCULATE (
DISTINCTCOUNT ( 'download to use'[Month] ),
ALL ( 'download to use' )
)```

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Employee

Hi @nmckbcs,

Please refer to below measure:

```AVG_Category_Breakdown2 =
SUMX ( VALUES ( 'download to use'[Month] ), [Category_Breakdown] )
/ CALCULATE (
DISTINCTCOUNT ( 'download to use'[Month] ),
ALL ( 'download to use' )
)```

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

## Helpful resources

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors