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
atlihaukur
Frequent Visitor

How do I create subtotal based on calculation?

I'm trying to create a customized subtotal calculation in a table. I want to present a table like this but have not found the right formula. The challenge is to have a subtotal with a calculation A+B and have the hierarchy (sheet-Section-Line_item) working as well

 

  Value
AOperating income1700
    Net interest income1000
    Financial income600
    Net fee and commission income100
BOperating expense-800
    Other expense-300
    Salary-500
 Net Earnings before tax (A+B)1700-800=900
 Net Impairment200
      Impairment200
 Net Earningssum(value)


The data look something like this

 

Valuesheetsectionline_itemin_earnings_before_tax
-410Income statementOperating incomeNet interest income1
-128Income statementOperating incomeNet interest income1
-500Income statementOperating incomeNet interest income1
-178Income statementOperating incomeNet interest income1
-431Income statementOperating incomeNet interest income1
-251Income statementOperating incomeNet interest income1
-43Income statementOperating incomeNet interest income1
-24Income statementOperating incomeNet interest income1
-15Income statementOperating incomeNet interest income1
-58Income statementOperating incomeNet interest income1
-112Income statementOperating incomeNet interest income1
-319Income statementOperating incomeNet interest income1
-725Income statementOperating incomeNet interest income1
-121Income StatementNet ImpairmentImpairment0

 

Any help/hints would be greatly appreciated

 

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @atlihaukur,

 

For your scenario, if you want to show the output as table, I'm afraid that we may not achieve that.

 

What about creating matrix it will show subtotal value for each level.

Capture.PNG

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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.