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
YBob23
Regular Visitor

Average of n amount of columns

Hi All, 

 

I would like to create an average of value of all columns. For example I would like to know the average on 0-1 which will be average (57+60+58+54+75) = 60.8
my issue is, I cannot just do sum((T1_Count) + (T2_Count)+(T3_Count)+(T4_Count)+(T5_Count))/5, as the number of columns will get larger everyday therefore if I just type 5 the next day it will give me the wrong average.
Thanks.

 

YBob23_0-1663860250337.png

 

1 ACCEPTED SOLUTION
davehus
Memorable Member
Memorable Member

Hi @YBob23 ,

 

Your best option would be to normalize the data and unpivot on the hour column. Then you could apply an average much easier.

 

Did I help you today? Please accept my solution and hit the Kudos button.

View solution in original post

1 REPLY 1
davehus
Memorable Member
Memorable Member

Hi @YBob23 ,

 

Your best option would be to normalize the data and unpivot on the hour column. Then you could apply an average much easier.

 

Did I help you today? Please accept my solution and hit the Kudos button.

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.