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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JBennett12
Regular Visitor

I want to average up only the numbers in each row instead of the columns.

Hi, This is my first power bi and I'm having trouble finding help on averaging a row. Everything online is about averaging columns. I have tried to transpose my table, but end up with errors that won't allow me to work with it. 

I will have 22 numbers in each row that need to be averaged and about 450 rows. Is there a way to do this dynamically where I won' thave to write 450 formulas?

 

Thank you,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JBennett12 ,

I have created a simple sample, please refer to it to see if it helps you.

Click the Home>>Transform data. Click the rows you want to calculate. Then click Transform>> unpivot columns.

vpollymsft_0-1659576432493.png

vpollymsft_1-1659576443077.png

Then create a measure.

Measure = CALCULATE(AVERAGE('Table'[Value]),FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table'[date])))

vpollymsft_2-1659576481065.png

If I have misunderstood your menaing, please provide your pbix file without privacy information and desired output with more details.

 


Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @JBennett12 ,

I have created a simple sample, please refer to it to see if it helps you.

Click the Home>>Transform data. Click the rows you want to calculate. Then click Transform>> unpivot columns.

vpollymsft_0-1659576432493.png

vpollymsft_1-1659576443077.png

Then create a measure.

Measure = CALCULATE(AVERAGE('Table'[Value]),FILTER(ALL('Table'),'Table'[date]=SELECTEDVALUE('Table'[date])))

vpollymsft_2-1659576481065.png

If I have misunderstood your menaing, please provide your pbix file without privacy information and desired output with more details.

 


Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

JBennett12
Regular Visitor

Sorry, I meant to post this as well, this is the first half of my list.

JBennett12_0-1659364301421.png

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.