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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
admin-unidoze
Frequent Visitor

The total in a Table isn't calculated correctly

I don't know if this is a bug or is intended, but assume the following data:

IDFKColumn
1ID1
2ID2
3ID3
4ID4
5ID5
6ID5
7ID6
8ID6

If you put these data in a Power BI Table-control, with:

      column1 = ID (Don't summarize)
      column2 = FKColumn (Count)
      column3 = FKColumn (Count DISTINCT)

Then the automatically generated total for column2 is 8, but for column3 is 6, allthought there are 8 rows with column2 = 1 AND column3 = 1. So the total of a DISTINCT COUNT is not really the sum of all values in the column. (And also an extra remark: I'm unable to rename only column3. When I do this, column2 is renamed also :-))

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @admin-unidoze

 

In total row for the column3, the count distinct aggregate is performed on the whole FKColumn, so the 6 value displays in total row of column3. 

 

To get the total value of distinct count for each ID, you can create a measure below: 

q2.PNG

 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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-qiuyu-msft
Community Support
Community Support

Hi @admin-unidoze

 

In total row for the column3, the count distinct aggregate is performed on the whole FKColumn, so the 6 value displays in total row of column3. 

 

To get the total value of distinct count for each ID, you can create a measure below: 

q2.PNG

 

 

Best Regards,
Qiuyun Yu 

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors