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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
adelmonte
Resolver I
Resolver I

Single row Percentage of the Total based on all selected filters

Hi,
Would someone be able to help me with the percentage of Total per single row.
I would like to achieve in Power BI dynamically something that I can do in Excel manually.
Table is "Total Volume" column is "Delivered" I need to obtain the percentage as the formula next describes.
Avoiding 2 decimals after the percentage i.e. 17,02% -> 17%

adelmonte_0-1666184498704.png

Thanks,
Alex

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @adelmonte ,

Please try below steps:

1. below is my test table

vbinbinyumsft_1-1666248738638.png

 

2. create a measure with below dax formula

 

Measure =
VAR cur_del =
    SELECTEDVALUE ( 'Table'[Delivered] )
VAR total =
    SUMX ( ALL ( 'Table' ), [Delivered] )
RETURN
    IF ( HASONEVALUE ( 'Table'[Delivered] ), DIVIDE ( cur_del, total ), 1 )

 

3. add a table visual with measure and fields

 

vbinbinyumsft_0-1666248718575.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
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

1 REPLY 1
Anonymous
Not applicable

Hi @adelmonte ,

Please try below steps:

1. below is my test table

vbinbinyumsft_1-1666248738638.png

 

2. create a measure with below dax formula

 

Measure =
VAR cur_del =
    SELECTEDVALUE ( 'Table'[Delivered] )
VAR total =
    SUMX ( ALL ( 'Table' ), [Delivered] )
RETURN
    IF ( HASONEVALUE ( 'Table'[Delivered] ), DIVIDE ( cur_del, total ), 1 )

 

3. add a table visual with measure and fields

 

vbinbinyumsft_0-1666248718575.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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