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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.