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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
12489
Regular Visitor

TOTAL COLUMN: NEED SIMPLE AVERAGE

how my table works.PNG

 

 

Community:  I'm very new to Power BI.  I'm struggling with one issue.  My dashboard works just fine except for one issue.  How do I change the Total Column to calculate a simple average vs. a weighted average?  The column values are all averages. I use the slicers to select multiple attributes that populate the columns.  I have multiple slicers i want to use.  The Total is giving a weighted average (just what its suppose to do!)  What I need is a simple average.  For the first row, I want this: (ROW SUM)/COUNT OF COLUMNS) (60.0 + 66.7)2 = 63.35.  The weighted average = 60.6  because I have more C GENETIC COLOR data than D LEAF SPOT DATA.  Data = # of Trials.   Any thoughts on how I can solve this?  I want to be able to select with the slicers any number of attributes and Years and have a simple average total column.

Thoughts on how to do this?  Really appreciate the help.

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@12489 wrote:

how my table works.PNG

 

 

Community:  I'm very new to Power BI.  I'm struggling with one issue.  My dashboard works just fine except for one issue.  How do I change the Total Column to calculate a simple average vs. a weighted average?  The column values are all averages. I use the slicers to select multiple attributes that populate the columns.  I have multiple slicers i want to use.  The Total is giving a weighted average (just what its suppose to do!)  What I need is a simple average.  For the first row, I want this: (ROW SUM)/COUNT OF COLUMNS) (60.0 + 66.7)2 = 63.35.  The weighted average = 60.6  because I have more C GENETIC COLOR data than D LEAF SPOT DATA.  Data = # of Trials.   Any thoughts on how I can solve this?  I want to be able to select with the slicers any number of attributes and Years and have a simple average total column.

Thoughts on how to do this?  Really appreciate the help.


@12489

Do you know measure? I think you can create another measure like below. If it won't work, could you upload your sample pbix file?

average total = (AVERAGE([C GENETIC COLOR])+AVARAGE([D LEAF SPOT]))/2

 

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@12489 wrote:

how my table works.PNG

 

 

Community:  I'm very new to Power BI.  I'm struggling with one issue.  My dashboard works just fine except for one issue.  How do I change the Total Column to calculate a simple average vs. a weighted average?  The column values are all averages. I use the slicers to select multiple attributes that populate the columns.  I have multiple slicers i want to use.  The Total is giving a weighted average (just what its suppose to do!)  What I need is a simple average.  For the first row, I want this: (ROW SUM)/COUNT OF COLUMNS) (60.0 + 66.7)2 = 63.35.  The weighted average = 60.6  because I have more C GENETIC COLOR data than D LEAF SPOT DATA.  Data = # of Trials.   Any thoughts on how I can solve this?  I want to be able to select with the slicers any number of attributes and Years and have a simple average total column.

Thoughts on how to do this?  Really appreciate the help.


@12489

Do you know measure? I think you can create another measure like below. If it won't work, could you upload your sample pbix file?

average total = (AVERAGE([C GENETIC COLOR])+AVARAGE([D LEAF SPOT]))/2

 

Let me try that.  Appreciate the help...

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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