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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kfschaefer
Helper IV
Helper IV

Divide one column by another

what is wrong with this statatement

 

divide([#"NetIncome$Total"],[RevenueTotal])

Got example from Chris Webb blog:

 

 

member measures.[France as a % of US] as 
divide(measures.[France Sales],measures.[US Sales]) 
, format_string=’0.00%’

got error message:

 

Expression error: The name 'divide' wasn't recognized.  Make sure it's spelled correctly.

1 ACCEPTED SOLUTION

This is far too much information to go into here. I suggest you read my book as a great way to get started quickly and correctly. http://xbi.com.au/learndax

 

with your first formula, are the 2 arguments inside divide columns or measures?  As a second question, Is the formula you are trying to write a measure or a calculated column?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

3 REPLIES 3
MattAllington
Community Champion
Community Champion

Are you writing DAX or MDX? The first is valid DAX as long as you add an equal sign at the front and as long as the 2 arguments are measures. If they are columns, then it may be valid if it is inside an iterator. 

 

 The second formula is MDX.  



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Please clarify, I am still quit new at this, "then it may be valid if it is inside an iterator."  I would be happy to use which ever I can get to work.

 

Thanks for the assistance.

 

 

This is far too much information to go into here. I suggest you read my book as a great way to get started quickly and correctly. http://xbi.com.au/learndax

 

with your first formula, are the 2 arguments inside divide columns or measures?  As a second question, Is the formula you are trying to write a measure or a calculated column?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors