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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.