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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Problem with the Average total line of a table

Hello people,

 

I`m trying to calculate the right total number for a table.
Currently I get the correct scores on each row but the total score is of by 0.03666 (or rounded off -0.1).

 

This is the formula I`m currently using:

# 2D - faciliteiten = 
    CALCULATE(
            AVERAGEX(Fact_Instellingsvragen,Fact_Instellingsvragen[Antwoord])
            ,Fact_Instellingsvragen[Vraag]="HANZE02B")

 

And this is the table:

Screenshot 1.png

I`m have already tried the method to make a totals measure but it gives back the same result.
The formula for this measure is:

m_Total 1 =
VAR __table = AVERAGE('Fact_Instellingsvragen'[School]"__value"[# 2D - faciliteiten])
RETURN
IF(HASONEVALUE(Fact_Instellingsvragen[School]),[# 2D - faciliteiten],SUMX(__table,[__value]))

 

What I`m doing wrong that Power BI thinks that the total is 7.6228 and not 7.6594 (3867.985/505) ?

Any advice is welcome and thank you in advance.

Jeroen

3 REPLIES 3
Anonymous
Not applicable

Hello Winniz,

 

Thank you for your reply. It turned out to be something else (a problem with a join).

This question/topic can be closed.

 

Best regards,

 

Jeroen

Hi @Anonymous ,


If you have solved your problem, kindly Accept it as the solution to help the other members find it more quickly.

vkkfmsft_0-1624441000456.png

 

Best Regards,
Winniz

 

v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Not sure about your model, maybe you can try the following formula to see if it returns the correct result.

 

Measure = 
CALCULATE(
    SUM(Fact_Instellingsvragen[Antwoord]) / COUNTROWS(Fact_Instellingsvragen)
    ,Fact_Instellingsvragen[Vraag] = "HANZE02B"
)

 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors