Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Basic stats for a given field

If accessing a database directly, as opposed to via powerbI, I could find info about a given field by running a bit of SQL - for instance:    SELECT AVG(field_name) AS averageVal FROM tableName   ...
  • v-kelly-msft's avatar
    v-kelly-msft
    5 years ago

    Hi  Anonymous ,

     

    Modify your measure as below:

    Measure = 
    AVERAGEX(ALL('Table'),VALUE('Table'[values]))

    And you will see:

     

    For the related .pbix file,pls see attached.

     

     

    Best Regards,
    Kelly

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