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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Issue creating measure dividing two columns

I'm trying to divide two columns and then subtract it by 1

 

For example an expected output is
110,237.00 / 115,029.00 = 0.96 

0.96 - 1 = -0.04

 

The measure I wrote is 

Measure = DIVIDE( SUM([Column 1]) , SUM([Column 2]) , 0) - 1
 
When I add - 1 after divide the measure becomes very slow and gives the wrong output. All the values become -1.00
What am i doing wrong here?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Why not try calculated column ? Since you are dividing based on rows, calculated column would be more appropriate.

Original data (Decimal Number):

Ailsamsft_0-1645686523255.png

Then create a calculated column .

calculated Column = DIVIDE('Table'[Column1],'Table'[Column2])-1

The final result is as shown :

Ailsamsft_1-1645686523258.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

Why not try calculated column ? Since you are dividing based on rows, calculated column would be more appropriate.

Original data (Decimal Number):

Ailsamsft_0-1645686523255.png

Then create a calculated column .

calculated Column = DIVIDE('Table'[Column1],'Table'[Column2])-1

The final result is as shown :

Ailsamsft_1-1645686523258.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Your Measure is Right but make sure that your both column should the same format. Try to create a VARIABLE of divide and -1 from that VARIABLE. If it does not work then send sample data or a PBIX file.

Anonymous
Not applicable

Both columns are decimal and I also tried making a variable of divide and subtracting by 1 but still same issue

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.