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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CS12345
Regular Visitor

Power BI Calculation

Guys.

 

Sorry for asking. I have a Data which is total production by month and i which to do it total production by month - the NCR of the month.

 

Anyone know wat formula should i key in in New Measure?

 

CS12345_0-1709272488371.png

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CS12345,

It seems like your field are text value which cannot be processed by aggregation functions. I'd like to suggest you convert them to numeric value before you calculate on it.

If you not so clarify how to handle this, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
CS12345
Regular Visitor

Hi @Gayatri_D05 

 

Let give a example, I have a monthly total production number of 315 in feb and my ncr for feb is 1 case.

 

Thus 315-1= 314.

 

I wanted the formula total prodcution - total of ncr in the month.

 

Thanks

Gayatri_D05
Resolver II
Resolver II

Hi @CS12345 ,
I didnt get you question, Could you please elaborate a bit.

I had try to key in the formula.

 

Unfortunately it pop out this

CS12345_0-1709279231047.png

 

Anonymous
Not applicable

Hi @CS12345,

It seems like your field are text value which cannot be processed by aggregation functions. I'd like to suggest you convert them to numeric value before you calculate on it.

If you not so clarify how to handle this, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.