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

Divide two columns

Just perplexed with this problem and new to PowerBI, want to just divide Number of leavers / Average Number of employees but seem to get as strange number when applying the calculation below. (numbers have been generated from excel detail values) Can anyone help please

Capture2.PNG

2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

Try this:

 

Turnover = DIVIDE(Turnover[Number_of_leavers],Turnover[Average_No_Employees],0)

This assumes that everything is a column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

shahfx
New Member

Solved the issue, this was related to trying to use the divide function without checking the columns were integer values (assumed import from excel might of taken care of that) I then used measures rather than column as was getting incorrect calculated values and having issues with showing decimals etc.  Wow sometimes this was a simple issue, not giving up yet. 

 

Thank you for all that replied.

  

View solution in original post

3 REPLIES 3
shahfx
New Member

Solved the issue, this was related to trying to use the divide function without checking the columns were integer values (assumed import from excel might of taken care of that) I then used measures rather than column as was getting incorrect calculated values and having issues with showing decimals etc.  Wow sometimes this was a simple issue, not giving up yet. 

 

Thank you for all that replied.

  

v-juanli-msft
Community Support
Community Support

Hi @shahfx

Assume [Number of leavers] and [Average Number of employees] are all columns and don't aggregation like sum, average, ect.

I test with your example data and formula, it shows the correct result as you wanted.

If you have this problem till now, please let me know what's your dataset like and whether any aggregation has been applied.

 

Best Regards

Maggie

Greg_Deckler
Community Champion
Community Champion

Try this:

 

Turnover = DIVIDE(Turnover[Number_of_leavers],Turnover[Average_No_Employees],0)

This assumes that everything is a column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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

Top Solution Authors
Top Kudoed Authors