Divide if in power pivot

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
528
Office Version
  1. 365
Platform
  1. Windows
I Seem to Be Having a Hard Time with Dividing One Column by Another Column in Power Pivot When I Add an If Statement. I Would Like to Divide Column a by Column B If Column C Is Grater Then 0

Any Help Is Appreciated
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
As a calculated column (if that is what you want), then it is a simple:

Code:
= IF ( Table[Column_C] > 0, DIVIDE( Table[Column_A], Table[Column_B] ) )

if in a pivot and you have rows/columns the way you want then :

Code:
IF( [Sum of C] > 0, DIVIDE ( [Sum of A], [Sum of B] ) )
 
Upvote 0
Any help please ?


thanks a million

that worked perfectly

i'm wondering if you can help me with a power piviot calculated column, or field, that would show me the difference in one customers if sales are up or down i would like to be able to filter my sales table by 1 customers and i want it to show me the difference between this month or last year however i slice it
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top