Forum Discussion
How to calculate Average
Hi,
Please help me in calculating average of a particular row (column 1, column2, column3....).
I need a average against each row comprising multiple column,
Like in a table i have five column
ABC - 1 , 2, 3, 4, 5 = Need Average of (1:5)
CDE - 4, 5, 7, 4, 8 = Need Average of (4:8)
Suresh
Hi, Anonymous
You need to transpose your data in PQ first, then create two measures to calculate the desired results.
Like this:
avgabc = AVERAGE('Table'[ABC])avgcde = AVERAGE('Table'[CDE])Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,Community Support Team _ Janey
2 Replies
- Greg_Deckler
Community Champion
Anonymous Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2. - v-janeyg-msft
Community Support
Hi, Anonymous
You need to transpose your data in PQ first, then create two measures to calculate the desired results.
Like this:
avgabc = AVERAGE('Table'[ABC])avgcde = AVERAGE('Table'[CDE])Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,Community Support Team _ Janey