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! Learn more

Reply
damit23183
Microsoft Employee
Microsoft Employee

Matrix Table not working as expected

Hi,

 

I am working on to create Matrix table with given data where i am looking for count based on Two Categories and SUM of Total Rows and Columns at end.

 

This is what i have;

Table.JPG

 

 

 

The result i am looking for is like;

Table.JPG

As you can see in above screen shot, Sum of Total column and Rows based on Categories

 

But, I am getting unexpected result which you can see below;

 

Table.JPG

So far the number inside the tables are correct but totals are incorrect my case. Please help me with solution becuase it does look like simple for many expert where i am really struggling to get correct total. Also, you can see total column are distinct count of case which correct but i want SUM of column not count of column. The same case with ROW total.

 

Let me know if you need any more information, i would be more than happy to provide you any time.

 

Thanks in advance.

5 REPLIES 5
Anonymous
Not applicable

Hi @damit23183 ,

 

Sorry for if i missed some information but i don't quite understand what the "A" and "C" are in your visual?

 

Best Regards,

Jay

mahoneypat
Microsoft Employee
Microsoft Employee

Is your measure a distinctcount?  If so, try just a regular COUNT().  Also, what columns are you putting on the matrix to get the A and C columns?  Basis is the parent column, but are A and C Age and Color?

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


HI,

 

THank you for your response.

 

Yes i have already use COUNT() which is C in this case.

 

Here C and A are two different value columns which are counting number of cases and number (C) of Aggrievedname (A). Each Basis will have C and A.

 

Thanks

I looked again at your initial post and both the data and pivot tables.  It really looks like it is working correctly.  It appears that maybe you have selected to do a distinctcount aggregation on the CaseID column, which would result in that table.  Which field did you place in the values area of your pivot table, and what is the selected aggregation?  I think you just want a straight count of the case ID column (since you have duplicate case ID values in that first column.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Hi,

 

Thanks for your response. 

 

Yes I have resolve this issue by using INSCOPE function to do aggregation.

 

Thanks

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