cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

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

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

Thank you for the help

1 ACCEPTED SOLUTION
Community Support

Please refer to my .pbix file.

``````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.

4 REPLIES 4
Super User

@AmirFirdaus9509 , if possible try a measure like

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

New Member

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

Thank you again

Community Support

Please refer to my .pbix file.

``````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.

Super User

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

Can you share a sample pbix after removing sensitive data.

Announcements

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors