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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
SanderAzubi
Frequent Visitor

Percentage for Rows

Hey Everyone,

 

i want to Display the Percentage in relation to the upper two Rows. 

 

The first two Rows should show "100%"

Power BI Forum.png

The following 4 Rows should show the proportion to the 100%

 

In the last Row should be the "+" or "-" Percentage which is left of the upper 100%

 

can someone help me? 

 

 

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

Hi @SanderAzubi ,

I created a sample to implement it. You could try the following steps.

1.Create a index column in Query Editor

1.PNG

2. Create a measure and then set it to percent 

Measure = IF(MAX('Table'[Index])<=2, 1,DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table'))))

3.PNG2.PNG

For the last row, it is the total row. We can't show "+\-". It is show the first row value in my sample. And  I attached it that you can download.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
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

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @SanderAzubi ,

I created a sample to implement it. You could try the following steps.

1.Create a index column in Query Editor

1.PNG

2. Create a measure and then set it to percent 

Measure = IF(MAX('Table'[Index])<=2, 1,DIVIDE(SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table'))))

3.PNG2.PNG

For the last row, it is the total row. We can't show "+\-". It is show the first row value in my sample. And  I attached it that you can download.

 

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you, it would have helped if i explained it better. I got more Data than those 6 Rows. I just Drill through them. If i´ve had those 6 Rows it would have worked. I still did it on my own. Thank you 

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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