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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ligalbert
Helper I
Helper I

How can I create a measure to find percentage in Power BI

I want to create a measure in Which i can divide the total value by the sum of all values. For example for 

00--05 I want to divide 75518/ by the sum of 00-05 through 121++

divide.PNG

So for the first one of 00--05 it should be 9% 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @ligalbert 

You need to select and unpivot columns as below in 'TransformData' and click 'Close&Apply'.

veasonfmsft_0-1653385547171.png

veasonfmsft_2-1653385623726.png

Then you can apply these new fields into the matrix as follows:

veasonfmsft_3-1653385731618.png

You can also create a new measure and apply it to the 'Values' of Matrix

Measure = SUM('Table'[Value])/CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute]))

veasonfmsft_4-1653386133563.png

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @ligalbert 

You need to select and unpivot columns as below in 'TransformData' and click 'Close&Apply'.

veasonfmsft_0-1653385547171.png

veasonfmsft_2-1653385623726.png

Then you can apply these new fields into the matrix as follows:

veasonfmsft_3-1653385731618.png

You can also create a new measure and apply it to the 'Values' of Matrix

Measure = SUM('Table'[Value])/CALCULATE(SUM('Table'[Value]),ALL('Table'[Attribute]))

veasonfmsft_4-1653386133563.png

 

Best Regards,
Community Support Team _ Eason

 

themistoklis
Community Champion
Community Champion

@ligalbert 

Try something like the following formula

 

% Share = 
VAR Volume =
    COUNT('Table'[CUSTOMER_ID)
VAR AllVolume =
    CALCULATE ( COUNT('Table'[CUSTOMER_ID]),ALL('Table') )

RETURN
    DIVIDE ( Volume, AllVolume )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.