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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to average multiple columns to produce a box with an average I can place in a box visual

I have a survey table based on 100 employees:

All the values are whole numbers 

 

Table =  Survey

 

Columns = column1, column2, column3, column4, column5

I want to make a measure where I can place it into a box visual that shows the the Average of all the rows

 

Please could I have some help please.

My figures do not have any nulls or blanks

1 ACCEPTED SOLUTION

Select these 4 columns, right click and select "Unpivot Other Columns"


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

All the columns and rows have numbers that are between 1 and 10

 

The average of all the columns and rows would therefore be between 1 and 10. Example:

 

Column1: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Column2: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Column3: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Column4: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Column5: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

 

Average = 5.5 (based on 50 numbers)

Hi,

In the Query Editor, unpivot all columns other than the 10 numeric columns.  Write this measure

Avg = average(Data[Value])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Sorry I did not mention that I have columns:

Date

Employee ID

Survey ID

Survey Type ID

 

I decided to just add up all the columns and divide by the number of columns in a measure.

Thank you for your help anyway

Select these 4 columns, right click and select "Unpivot Other Columns"


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Select these 4 columns, right click and select "Unpivot Other Columns"


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.