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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
pedroccamaraDBI
Post Partisan
Post Partisan

Top 10 with % over another column

Hello all. Hope you're all good.
I have this visual that show me the top 10 value for each SKU.
apagar4.JPG
Now, i would like to have another column that show me what is the % of those values for each UNIT. 
I've tried to find out the total of each unit but it's not working...maybe because of the context. Don't really know...and this measure doesn't work . It shows the same value as VALUE.
Measure = CALCULATE ([Total Value], ALL (Table[Unit] ))
Can any of you help me?
Thank you all

1 ACCEPTED SOLUTION

This is the solution i came up with

CALCULATE( [Value], ALLEXCEPT( Product, Producto[Unit]))

View solution in original post

9 REPLIES 9
Whitewater100
Solution Sage
Solution Sage

Hi:

It's difficult to answer in the best way when theri is no pbix however,

You can first make a measure to sum up the values;  Total Qty= SUM(TableName[Values]) If you are doing this as a calc col in a tablethis same formula Tot Qty = SUM(TableName[Values])  will give you the bottom line total for all units. 

 

The SHARE Measure can be 

DIVIDE(SUMX(TableName, [Tot Qty]),

SUMX(ALLSELECTED(TableName), [Tot Qty])

 

If this doesn't work, please share file.(or sample). Hope this helps.

 

Then can do DIVIDE(TableName[

 

The divide function can give you the percents.

Hello @Whitewater100 
Thank you for your answer.

Before the share measure, i need to first calculate the total value for each unit, regardless the context, except the date filter.
And that's the measure i need help

Thank you very much

This measure?

Total Qty= SUM(TableName[Values])

Total Qty All Items = CALCULATE([Total Qty], REMOVEFILRERS())

Hi @Whitewater100 
The idea is to have all Qty for each unit that exists in the visual. Your measure didn't work and i've tried also 

CALCULATE( [Qt], ALLSELECTED( UN )) but it didn't work. It showed me the total for all units. I want the total for each unit.



Hello:

 

Please see my example file. I wll attach due to a few steps involved.

 

https://drive.google.com/file/d/1eU_FZGevQG7JVfDy0yl5cDaQ1P0ZFp-4/view?usp=sharing 

@Whitewater100  could you please let me know which file is it and where is it?

Hi:

I put it in my Google Drive. Is this link working?

https://drive.google.com/file/d/1eU_FZGevQG7JVfDy0yl5cDaQ1P0ZFp-4/view?usp=sharing

Yes but It's showing me this...
apagar6.JPG

This is the solution i came up with

CALCULATE( [Value], ALLEXCEPT( Product, Producto[Unit]))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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