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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
tanmaykaushik
New Member

Calculating average of N columns in a single row (Basically horizontal operations) in POWER BI

Dear Community,

 

What I am struggling to solve as a beginner is that what if there are many more rows in your dataset and you want to perform an operation or add a new column that calculates the average/total of you table data full of numbers both horizontally and vertically. Just like in Excel where a sum etc. can be applied to add a new final column as well as a row. (PLEASE REFER EXCEL EXAMPLE)

 

Could someone please tell me if there is a way to calculate totals/averages/etc for 'n' columns in Power BI horizontally? Just like the sum function works in Excel over the whole row operating on every column in the ROW. 

tanmaykaushik_0-1712437340451.png

THIS IN THE END HELPS ME MAKE CHARTS AND OTHER ANALYSIS IN EXCEL, I WANT TO ACHIEVE THE SAME IN PBI. 🙂




Appreciate the help. Thank you

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

This will hurt a little.  Forget everything Excel taught you.  Power BI is expecting long, narrow tables. To bring your data into usable format, unpivot it.

 

After that your formulas write themselves, or you may not even need any explicit formulas.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

This will hurt a little.  Forget everything Excel taught you.  Power BI is expecting long, narrow tables. To bring your data into usable format, unpivot it.

 

After that your formulas write themselves, or you may not even need any explicit formulas.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.