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
rkilwine
New Member

Creating a new measure - basic calculation

Hello!

 

I am new to Power BI and woudl like to create a measure on two of my columns to create a percetage.

 

I am working with two columns on Pass attempted vs Passes Completed. from my understanding this would be very simple, I choose the divide expression and then point the expression in the direction of the columns I'd like to calculate. I am receiving the error attached in the second picture and am unsure of what is driving this. Can someone assist? The entire column is formatted as whole numbers and only contain numbers. 

 

I appreciate the help!

 

Capture.PNG2.PNG

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Because you are doing a Measure you need to aggregate the Values - just add SUM

Percentage = DIVIDE ( (SUM(column)), (SUM(other)), 0)

View solution in original post

3 REPLIES 3
Sean
Community Champion
Community Champion

Because you are doing a Measure you need to aggregate the Values - just add SUM

Percentage = DIVIDE ( (SUM(column)), (SUM(other)), 0)

Hi Sean - you are a LIFE SAVER! 

 

and you are right in order to create the accurate measure I need to divide completed by attempted.

 

Can you elaborate a little more on the purpose of addind the SUM in front of the column name? I am unfamiliar with this function. Maybe some alternate...(looking for the name of what to call SUM)...versions of those? Like what would the difference be between SUM and COUNT in that same formula?

 

Again - Thank you so much! You just unlocked Measures for me.

Sean
Community Champion
Community Champion

@rkilwine shouldn't you divide completions by attemps?

 

Divide.png

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.