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
Anonymous
Not applicable

Calculation Based on Report Table Columns

I am very new to Power BI (less than 5 hours) and am using it to identify ideal process settings for a piece of equipment on one of our production lines.  For the current piece of equipment I am working on, we have one of three outcomes, that loosely translate to good, bad or marginal product quality.

 

What I did was split the process settings into bins (in hopes of finding the ideal operating window), and using a column which quantifies product quality, create three individual calculated columns which output a 1 or 0 based on an if statment of whether or not the quality conditions were met so they could be summed later for a count.  I also created a Total column summing all three so I would know the total number of instances that fell within that specific process settings range (in this case 5 psi ranges).  I then created a visualization table summing all instances of the three columns within the process settings range and it appears to have worked well, but the one thing I cannot figure out how to do is perform calculations within that table (ex. there were 45,000 good, 3,000 marginal and 1,500 bad in settings window 1, so the yield of "good" product was 90.9%).

 

For instace, I would like to be able to identify the percentage that fall into each of the three groups and cannot find a way to do this.  Calculated columns do not appear to help given my understanding of them since they're based off the individual rows of data and not the set or bin as a whole.  Any insight into any type of automatically updating calculation I could perform on each window/row on the table would be greatly appreciated.

 

Thanks,

 

Nick

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Nick,

 

Could you please mark the proper answers as solutions?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Nick,

 

Can you share a sample, please? You can upload it to the cloud drive like OneDrive, then share the download link here.

You can try a measure like below.

 

Measure =
SUM ( 'table'[column] ) / CALCULATE ( SUM ( 'table'[column] ), ALL ( 'table' ) )

 

Best Regards,
Dale

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

Helpful resources

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