Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

How to create average

Hi everyone, I'm trying to find the average NPS score based on the data below, excluding any blanks. Can someone help with creating a formula or solution on how I can get the result in PowerBI? Thanks in advance.

 

Ticket NumberNet Promotor Score
1Blank
210
310
48
5Blank
69
79
810
9Blank
10Blank
Average9.3333
  • Assuming in your input table you have literal values 'Blank' then here's how you can exclude them and create a new measure Avg. NPS. (adjust your table and Column name.

     

    Avg. NPS = AVERAGEX(
        FILTER(Table1,
            ISNUMBER(VALUE(Table1[Net Promotor Score])) && Table1[Net Promotor Score] <> "Blank"
        ),
        VALUE(Table1[Net Promotor Score])
    )
     
    If I answered your question, please mark this thread as accepted.
    Follow me on LinkedIn:
    https://www.linkedin.com/in/mustafa-ali-70133451/
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous 

    You can use the average() function directly.

    e.g You can create a calculated column.

    Column = AVERAGE('Table'[Net Promotor Score])

    Output

     

    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.

2 Replies

  • amustafa's avatar
    amustafa
    Solution Sage

    Assuming in your input table you have literal values 'Blank' then here's how you can exclude them and create a new measure Avg. NPS. (adjust your table and Column name.

     

    Avg. NPS = AVERAGEX(
        FILTER(Table1,
            ISNUMBER(VALUE(Table1[Net Promotor Score])) && Table1[Net Promotor Score] <> "Blank"
        ),
        VALUE(Table1[Net Promotor Score])
    )
     
    If I answered your question, please mark this thread as accepted.
    Follow me on LinkedIn:
    https://www.linkedin.com/in/mustafa-ali-70133451/
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    You can use the average() function directly.

    e.g You can create a calculated column.

    Column = AVERAGE('Table'[Net Promotor Score])

    Output

     

    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.