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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Fidzi8
Helper V
Helper V

weighted average - bad value

Hi, 

before last days I need help with weighted average. I calculate this value but  I don´t know one row - why is 0,99?

 

2020-04-30_10h35_01.png

 

Thank you 

Ondřej

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Fidzi8 , Can you check what value you are getting for the sumx in divide. Get that a separate column and check. If you still see issue.Can you share sample data and sample output.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @Fidzi8 

It seems that there is something wrong in the SUMX Function calculated.

See this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

[Trips] and [Priorita] are from different tables, if the row context of this table visual is all from sheet1 table?

 

and if you adjust the formula as below to see if it works well

Weighted average = DIVIDE(SUMX(Sheet1; CALCULATE(SUM(Sheet1[Trips]))*'Inyern'[Priorita]); SUM(Sheet1[Trips]))

 

If not your case, please share a simple sample pbix file for us have a test.

 

Regards,

lin

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

@Fidzi8 , Can you check what value you are getting for the sumx in divide. Get that a separate column and check. If you still see issue.Can you share sample data and sample output.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.