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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AmirFirdaus9509
New Member

How to get Subtotal Percentage

Hi , I would like to request an advice on how to fetch a subtotal percentage 

I have use Decomposition Tree Graph to show breakdown of a Total amount of Data and i would like to create a breakdown based on month and breakdown percentage of response status as shown in the image. The image shown is a breakdown , I would like the graph to calculate percentage 46/163 instead of 46/617 

AmirFirdaus9509_1-1617854113804.png

 

 

AmirFirdaus9509_0-1617853869933.png


How can i get a Subtotal percentage of January , February and March

Thank you for the help

1 ACCEPTED SOLUTION

Hi @AmirFirdaus9509 ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1618214488208.png

Measure = 
IF(
    HASONEFILTER(Sheet14[C1]) = TRUE(),
    IF(
        HASONEFILTER(Sheet14[C2]) = FALSE(),
        DIVIDE(
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) ), [Value] ),
            SUMX( ALL(Sheet14), [Value])
        ),
        DIVIDE(
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) && [C2] = MAX([C2]) ), [Value] ),
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) ), [Value] )
        )
    ),
    1
)

 

Best regards,
Lionel Chen

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

4 REPLIES 4
amitchandak
Super User
Super User

@AmirFirdaus9509 , if possible try a measure like

 

divide([Measure], calculate([meausre], removefilters(Table[Response Status])))

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,
I have tried to recreate based on your measure through my knowledge
as am i not experienced with PBI , is this correct?

AmirFirdaus9509_1-1617858096555.png

Thank you again

 

Hi @AmirFirdaus9509 ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1618214488208.png

Measure = 
IF(
    HASONEFILTER(Sheet14[C1]) = TRUE(),
    IF(
        HASONEFILTER(Sheet14[C2]) = FALSE(),
        DIVIDE(
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) ), [Value] ),
            SUMX( ALL(Sheet14), [Value])
        ),
        DIVIDE(
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) && [C2] = MAX([C2]) ), [Value] ),
            SUMX( FILTER( ALL(Sheet14), [C1] = MAX([C1]) ), [Value] )
        )
    ),
    1
)

 

Best regards,
Lionel Chen

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

 

@AmirFirdaus9509 , "values" which is giving DPMonth, does not seem correct to me.

Can you share a sample pbix after removing sensitive data.

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

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