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

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

Reply
Anonymous
Not applicable

Calculate Problem

Hello,

 

I have a simple problem. 

I want to calculate the totals of the QuantityAllocated column according to each different container number

koray_0-1614227191800.png

 

 

When I click on a row it gives the total number of all similar productID columns in the row. I dont want this. Should be 912

 

koray_1-1614227139310.png

 

 

Thank you

 

6 REPLIES 6
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Do the columns in the table visual have unique values? Or is this table visual data from multiple tables?

I create a table with unique values and use QuantityAllocated as the card visual. when click will display the value of the corresponding row.

V-lianl-msft_1-1614322270060.png

 

If the problem persists,could you using virtual data to create a sample pbix that fits your scenario and share it via cloud service like onedrive for business?

 

 

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

PaulDBrown
Community Champion
Community Champion

@Anonymous 

Following on from @Tahreem24  suggestion, If you are using a card visual, you will get a "total" unless you specify a specific ID in the filter expression or as a filter in the filter pane.

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Tahreem24
Super User
Super User

@Anonymous  - Try to  create a measure that will sum up values based on unique container ID:

MEASURE = CALCULATE(SUM(Table[Values]),ALLEXCEPT(Table,Table[Container ID]))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi @Tahreem24 

 

It doesn't work.

 

koray_3-1614169530178.png

 

 

I just want this.

 

koray_2-1614169458134.png

 

 

 

 

amitchandak
Super User
Super User

@Anonymous , what is the structure of your data.

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

Sorry I can't share. I get the data from the database with direct query. What I want is the sum of the QuantityAllocated columns for according to each different container column.

So; In the following filtering result, normally the Quantity Allocated quantity sum should be 39.720, but the result is 158.888 😞

koray_0-1614162237543.png

 




Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.