cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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%

Thanks,
Alex

1 ACCEPTED SOLUTION
Community Support

1. below is my test table

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

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.

Community Support

1. below is my test table

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

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.

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors