If than else in DAX

Petersx

New Member
Joined
Nov 2, 2015
Messages
11
Good Morning,

i have my next problem.....

I have a Table with column A;B,C
A = 1 or 0
B = Value
C = only A = 0 than Value from B

Can anybody help me? Me idea with calculate and filte does not work.....

best regards,
Peter
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hello Peter,
I'm not sure what you want to do but the syntax for an IF statement is:
IF(Logical Test, Result if true, Result if false), for example: IF([column1]=1, "Yes", "No").

Calculate is useful for conditional aggregating, for example:
CALCULATE(SUM([column1]), [column2]>0)

*Structure: CALCULATE(Expression, Filter1, Filter2...)

Olivier.
 
Upvote 0
Hello Peter,
I'm not sure what you want to do but the syntax for an IF statement is:
IF(Logical Test, Result if true, Result if false), for example: IF([column1]=1, "Yes", "No").

Calculate is useful for conditional aggregating, for example:
CALCULATE(SUM([column1]), [column2]>0)

*Structure: CALCULATE(Expression, Filter1, Filter2...)

Olivier.


Good Morning Oliver,

i have a column with values and a column with a 1 or 0. Now i would create a new column. In this column there are only the value for the expression:
If Qualitiy 1 than Value

For Example:

Qualitiy | Value | New Column
0 ...........10.............-
1 ...........8.............8
0 ...........15.............-
0 ...........20.............-
1 ...........100..........100



hopefully it helps....
 
Upvote 0
Good morning Peter,

Then the formula in New Column should be: IF([Quality]=1, [Value], "-"), if by "-" you meant blank, you can replace it by "".

Olivier.

Ps: It's If, Then, Else
 
Upvote 0

Forum statistics

Threads
1,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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