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
Giada90
Helper III
Helper III

average instead of sum

Hi,

I have a database like this:

abcde
sara1267
chiara5676
ambra8323

 

I have this measure: 

Measure = sum(Foglio1[b])+ sum(Foglio1[c])+ sum(Foglio1[d]) + sum(Foglio1[e])
 
I have a table and a gauge like this:  Screenshot 2023-04-13 101402.png
I need to have the average of measure (18,6) instead of sum in both gauge and total in the table
How can I do?
Thanks
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

My measure =
IF (
    ISINSCOPE ( 'Foglio1'[a] ),
    SUMX ( 'Foglio1', 'Foglio1'[b] + 'Foglio1'[c] + 'Foglio1'[d] + 'Foglio1'[e] ),
    AVERAGEX (
        'Foglio1',
        'Foglio1'[b] + 'Foglio1'[c] + 'Foglio1'[d] + 'Foglio1'[e]
    )
)

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Try

My measure =
IF (
    ISINSCOPE ( 'Foglio1'[a] ),
    SUMX ( 'Foglio1', 'Foglio1'[b] + 'Foglio1'[c] + 'Foglio1'[d] + 'Foglio1'[e] ),
    AVERAGEX (
        'Foglio1',
        'Foglio1'[b] + 'Foglio1'[c] + 'Foglio1'[d] + 'Foglio1'[e]
    )
)

thanks!

 

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.