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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
RP101
Frequent Visitor

Sub Total and Grand Total by particular column in Power BI Desktop

Hello, 

 

I am very new to power bi and trying to create the Power BI dashbaord using PBI Desktop. Can you please guide me how to achive the expected results? 

Here is the dataset :

 Client ID  Order Date Item Number  Client Name  Client Request Type  Billing Code  Units 
1700038/1/2024AOL123Ross IncCancel Order60031
1500028/1/2024ORT123ToysRUs CorporationAdd 50011
1800058/6/2024PAS123T-Mobile NJ LLCCancel Order60031
1800058/6/2024PAS124T-Mobile NY LLCCancel Order60031
1400018/21/2024ABD123Amazon ABC LLCAdd 50011
2222228/21/202468562ATargetCreate Order800041
2121218/22/202474432BMacysCreate Order800041
1400018/22/2024ABC124Amazon XNY LLCAdd 50011
2020208/26/202453620ALowesCreate Order800041
2020208/27/202440058FHome DepotCreate Order80004

1

 

 

 

Expected Results: 

The main focus is adding the sub total of UNITS by "Client Request Type" and sort the table by "Client Request Type" asc, "Order Date" asc

   Client ID    Order Date    Item Number    Client Name   Client Request Type   Billing Code   Units 
1400018/21/2024ABD123Amazon ABC LLCAdd 50011
1400018/22/2024ABC124Amazon XNY LLCAdd 50011
1500028/1/2024ORT123ToysRUs CorporationAdd 50011
    Add  Total 3
1700038/1/2024AOL123Ross IncCancel Order60031
1800058/6/2024PAS123T-Mobile NJ LLCCancel Order60031
1800058/6/2024PAS124T-Mobile NY LLCCancel Order60031
    Cancel Order Total 3
2020208/26/2024PLO123LowesCreate Order800041
2020208/27/2024WWE12Home DepotCreate Order800041
2121218/22/2024EOS123MacysCreate Order800041
2222228/21/2024QQER11TargetCreate Order800041
    Create Order Total 4
    Grand Total 10

 

Thank you in advanced !

 

2 ACCEPTED SOLUTIONS
v-linhuizh-msft
Community Support
Community Support

Hi @RP101 ,

 

Please create a matrix with the following steps:

1. Create a matrix dragging fields into rows and values in the following order.

vlinhuizhmsft_0-1733882290943.png

 

2. Change layout to tabular and turn on "Repeat row headers".

vlinhuizhmsft_1-1733882432946.png

 

3. Turns off all "Show subtotal" option at all row levels except  Client Request Type and Client ID.

vlinhuizhmsft_2-1733882590772.png

 

vlinhuizhmsft_3-1733882753686.pngvlinhuizhmsft_4-1733882765894.png

 

4. Result:

vlinhuizhmsft_5-1733882798079.png

Best Regards,
Zhu
Community Support Team

 

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

View solution in original post

Thank you Zhu

Appriciate your Reply !

View solution in original post

2 REPLIES 2
v-linhuizh-msft
Community Support
Community Support

Hi @RP101 ,

 

Please create a matrix with the following steps:

1. Create a matrix dragging fields into rows and values in the following order.

vlinhuizhmsft_0-1733882290943.png

 

2. Change layout to tabular and turn on "Repeat row headers".

vlinhuizhmsft_1-1733882432946.png

 

3. Turns off all "Show subtotal" option at all row levels except  Client Request Type and Client ID.

vlinhuizhmsft_2-1733882590772.png

 

vlinhuizhmsft_3-1733882753686.pngvlinhuizhmsft_4-1733882765894.png

 

4. Result:

vlinhuizhmsft_5-1733882798079.png

Best Regards,
Zhu
Community Support Team

 

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

Thank you Zhu

Appriciate your Reply !

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!