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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.