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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Shell64
Regular Visitor

DAX % Based on Sub totals

I have a power bi report where I am trying to to the following:

 

                                               FinYr  2324

Team                                       Left                       Still Here             %Left           %Still here

Team 1                                    135                        67                         66.8             33.16                       Team 1 Total 202

    sec1                                     100                        60                        49.5             29 

    sec2                                      30                            5                        14.8            2.4

    sec3                                        5                            2                         2.4              0.9

Team 2                                   140                           50                                                             Team 2 Total 190 

    sec1                                     100                        40

    sec2                                      35                            5

    sec3                                        5                            2

 

What I wanted to do is the % based on the team total per section. 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Shell64 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Subtotal = SUM('Table'[Left])+SUM('Table'[Still Here])
%Left = DIVIDE(SUM('Table'[Left]),[Subtotal])
%Still here = DIVIDE(SUM('Table'[Still Here]),[Subtotal])

vyiruanmsft_0-1705632501050.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Shell64 ,

I created a sample pbix file(see the attachment), please check if that is what you want.

Subtotal = SUM('Table'[Left])+SUM('Table'[Still Here])
%Left = DIVIDE(SUM('Table'[Left]),[Subtotal])
%Still here = DIVIDE(SUM('Table'[Still Here]),[Subtotal])

vyiruanmsft_0-1705632501050.png

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.