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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors