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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Daxxen
New Member

Row level calculations in Matrix

Hi all,

I'm stuck with a request from a co-worker and need help..

 

I need to create a Matrix visual that has the Provider and Company on the rows. These are coming from Dimension tables "D_Provider" and "D_Company". We also have a "D_Calendar" table connected to the Data table.

 

The needed measures are Limit, In Use and In Use %.

The row sub totals should not "duplicate" the Limits that are of type Shared.

For type "Shared" the Limit values should not be visible/accounted for in the Matrix other than on row sub totals and grand totals.

For other types the Limit values should be visible.

However, the In Use % should be shown for each company/row in the Matrix (also sub totals and grand totals). 

If the company is using a shared Limit (Type=Shared) then the percentage should be calculated from the shared amount. If not a shared limit then use the amount related to the company. The idea for In Use % should be visible in the table below.

The data is coming from a Excel spreadsheet with the structure below:

DateProviderTypeTotalTagCompanyLimitIn UseIn Use %

29.11.2024

Bank1

SharedYesCompany 11 000 000200 00020,00 %
29.11.2024

Bank1

Shared Company 21 000 00050 0005,00 %
29.11.2024Bank1Shared Company 31 000 0004 0000,40 %
29.11.2024Bank1Shared Company 41 000 00030 0003,00 %
29.11.2024Bank1Shared Company 51 000 00022 0002,20 %
29.11.2024Bank2OwnYesCompany 1500 000150 00030,00 %
29.11.2024Bank2OwnYesCompany 6600 000220 00036,67 %
29.11.2024Bank2OwnYesCompany 7700 000330 00047,14 %
29.11.2024Bank3OwnYesCompany 1900 000400 00044,44 %
29.11.2024Bank4SharedYesCompany 13 000 00000,00 %
29.11.2024Bank4Shared Company 23 000 00050 0001,67 %
29.11.2024Bank5OwnYesCompany 114 00014 000100,00 %
29.11.2024Not bankParent Company 190 00090 000100,00 %
        

31.10.2024

Bank1

SharedYesCompany 1

1 000 000

250 000

25,00 %
31.10.2024

Bank1

Shared Company 21 000 000

100 000

10,00 %
31.10.2024Bank1Shared Company 31 000 00054 0005,40 %
31.10.2024Bank2OwnYesCompany 1500 000170 00034,00 %
31.10.2024Bank2OwnYesCompany 6600 000240 00040,00 %
31.10.2024Bank2OwnYesCompany 7700 000350 00050,00 %
31.10.2024Bank3OwnYesCompany 1900 000420 00046,67 %
31.10.2024Bank4SharedYesCompany 13 000 00000,00 %
31.10.2024Bank4Shared Company 23 000 00055 0001,83 %
31.10.2024Bank5OwnYesCompany 114 00014 000100,00 %
31.10.2024Not bankParent Company 190 00090 000100,00 %

 

The output I am looking for is something like this:

Daxxen_0-1733395978062.png

 

Would be extremely grateful for any assistance on this 🙂

3 REPLIES 3
v-tianyich-msft
Community Support
Community Support

Hi @Daxxen ,

Please share your sample file so that the problem may be solved better.

Best regards,
Community Support Team_ Scott Chang

lbendlin
Super User
Super User

lbendlin_0-1733449575821.png

 

Hi and many thanks for the idea.

However, this solution does not work because the report page contains a year and month filter from D_Calendar that is used to filter also other visualizations on the page. Maybe I was not clear enough when saying that the data table is connected to a calendar.

Any suggestions on how to incorporate the usage of the Date dimension?

Also, the Provider and Company are coming from their own dimension tables as mentioned in the original post. It is required to use these dimensions since the end-user wants to show the providers and companies in a specific order and these sort orders are handled by a sorting column in the dimensions.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.