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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
koray
Helper V
Helper V

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 @koray ,

 

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

@koray 

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

@koray  - 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

Hi @Tahreem24 

 

It doesn't work.

 

koray_3-1614169530178.png

 

 

I just want this.

 

koray_2-1614169458134.png

 

 

 

 

amitchandak
Super User
Super User

@koray , 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.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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