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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
neardllx
New Member

How do I make the percentage not be added to the total?

I have the two grapyhs below, I needed to build a seller ranking with the highest amount of unavailability by percentage

neardllx_0-1681844016964.png

but instead of showing the individual % of each seller, it ends up adding that % to the total of all sellers, instead of just showing the % of unavailability of itself (for example, instead of keeping showing the 87% in the ranking, it displays 20.15%)

neardllx_1-1681844319396.png

how do i fix that?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @neardllx ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1681961261320.png

(2) We can create two measures. 

unavailability% = 
var _total=CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller])))
var _un=CALCULATE(MAX('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller]) && 'Table'[type]="unavailability"))
return 
DIVIDE(_un,_total,0)
availability% = 
var _total=CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller])))
var _a=CALCULATE(MAX('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller]) && 'Table'[type]="availability"))
return 
DIVIDE(_a,_total,0)

(3) Then the result is as follows.

vtangjiemsft_1-1681961315568.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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
Ashish_Mathur
Super User
Super User

Hi,

Share some data, explain the question and show the expected result in a simple Table format.  Once we get the correct results in a Table, we can always build a visual from it.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @neardllx ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1681961261320.png

(2) We can create two measures. 

unavailability% = 
var _total=CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller])))
var _un=CALCULATE(MAX('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller]) && 'Table'[type]="unavailability"))
return 
DIVIDE(_un,_total,0)
availability% = 
var _total=CALCULATE(SUM('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller])))
var _a=CALCULATE(MAX('Table'[value]),FILTER(ALL('Table'),'Table'[seller]=MAX('Table'[seller]) && 'Table'[type]="availability"))
return 
DIVIDE(_a,_total,0)

(3) Then the result is as follows.

vtangjiemsft_1-1681961315568.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.