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
yassara
New Member

Multi column totals then percentege

Hi there,

I want to try show totals then percentage like this;

 

Expense  Jan - Feb  - Mar -Totals - Percentage

Salary     300 - 100 - 350 - 750    -   %50

Electric   100 - 300 - 350 - 750    -   %50

------------------------------------------------

Totals    400 - 400 -  700  - 1.500 -  %100

 

If I try to percentage code include divide results shows all column percentage. But I want to show percentage just end of the table column.

 

what is the solution?

Ty. 

1 ACCEPTED SOLUTION
v-jiewu-msft
Community Support
Community Support

Hi @yassara ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1708659038345.png

2.Create the new column to calculate total.

 

Total = 'Table'[Jan] + 'Table'[Feb] + 'Table'[Mar]

 

3.Create the measure to sum total.

 

MeasureTotal = SUM('Table'[Jan]) + SUM('Table'[Feb]) + SUM('Table'[Mar])

 

4.Create the measure to calculate percentage.

 

Percentage = FORMAT(DIVIDE([MeasureTotal], CALCULATE(SUM('Table'[Total]), ALL('Table'))),"0%")

 

5.Drag the Total and measure into the table visual. The result is shown below.

vjiewumsft_1-1708659194957.png

vjiewumsft_2-1708659200900.png

Best Regards,

Wisdom Wu

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

3 REPLIES 3
yassara
New Member

Thank you for your kindly reply.

So can you help me about if the table has like this;

 

Date           - Type      - Amout - Code

------------------------------------------

10.07.2023 - Salary    -  1.000   -  780

15.08.2023 - Other     -  5.500  -  780

11.07.2023 - Salary     - 1.200   - 770

10.09.2023 - Salary    - 5.000    - 780

10.08.2023 - Electricity - 5.000  - 780

 

 and I want to show report like this;

 

Type     -  Jully   -   Agust    -  September  - Total    -  % Perc

------------------------------------------------------------

Salary  -   2.200    -    0        -    5.000        -  7.200   -    40,68%

Other   -     0       -   5.500    -      0             -   5.500  -   31,08%

Electricity - 0       -   5.000    -      0             -   5.000  -   28,24%

Total    -  2.200    -   10.500  -    5.000        -  17.700 -   100%

 

v-jiewu-msft
Community Support
Community Support

Hi @yassara ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1708659038345.png

2.Create the new column to calculate total.

 

Total = 'Table'[Jan] + 'Table'[Feb] + 'Table'[Mar]

 

3.Create the measure to sum total.

 

MeasureTotal = SUM('Table'[Jan]) + SUM('Table'[Feb]) + SUM('Table'[Mar])

 

4.Create the measure to calculate percentage.

 

Percentage = FORMAT(DIVIDE([MeasureTotal], CALCULATE(SUM('Table'[Total]), ALL('Table'))),"0%")

 

5.Drag the Total and measure into the table visual. The result is shown below.

vjiewumsft_1-1708659194957.png

vjiewumsft_2-1708659200900.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

 

 

 

wini_R
Resolver IV
Resolver IV

Hi @yassara,

 

One approach that could help here is to use calculation group as explained in this video:
Use Measures as Columns Using Calculation Group in Power BI

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

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.