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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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