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
kimrhansen
Frequent Visitor

Calculate weighted average in total in Matrix visualization

Hi all,

 

I would really appreciate your help with the following.

I have some figures as in the following excel example.

Instead of showing the total as a simple average i want to show it as a weighted sum of the sales per FTE as illustrated in the formula. That is, I want to make more weight Group F than A since the sales number is larger thus more stable

 

Thanks in advance,

 

Kim

 

 

Capture.PNG

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @kimrhansen,

In Power BI Desktop, create the following measures in your table.

WeightedSum = SUMX(Table1,Table1[Sales]*Table1[Sales per FTE])
SumSales = SUM(Table1[Sales])
target = [WeightedSum]/[SumSales]
1.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
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

1 REPLY 1
v-yuezhe-msft
Employee
Employee

Hi @kimrhansen,

In Power BI Desktop, create the following measures in your table.

WeightedSum = SUMX(Table1,Table1[Sales]*Table1[Sales per FTE])
SumSales = SUM(Table1[Sales])
target = [WeightedSum]/[SumSales]
1.PNG

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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