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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.