Hi,
I just started to explore DAX functions so I apologize that this is a newbie question. I have a data set with 2 columns: code & nominal. I'd like to add a calculated column to check if the aggregated sum of nominal per code is zero. So, I'd like to add a zeroPosition column as below:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]code
[/TD]
[TD]nominal
[/TD]
[TD]zeroPosition
[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]100
[/TD]
[TD]TRUE
[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]-100
[/TD]
[TD]TRUE
[/TD]
[/TR]
[TR]
[TD]XZY
[/TD]
[TD]200
[/TD]
[TD]FALSE
[/TD]
[/TR]
[TR]
[TD]XZY
[/TD]
[TD]-100
[/TD]
[TD]FALSE
[/TD]
[/TR]
</TBODY>[/TABLE]
In Excel the formula would be: =IF(SUMIF($A$2:$A$5;A2;$B$2:$B$5)=0;TRUE;FALSE). But how should I do this with DAX?
br,
Jack
I just started to explore DAX functions so I apologize that this is a newbie question. I have a data set with 2 columns: code & nominal. I'd like to add a calculated column to check if the aggregated sum of nominal per code is zero. So, I'd like to add a zeroPosition column as below:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]code
[/TD]
[TD]nominal
[/TD]
[TD]zeroPosition
[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]100
[/TD]
[TD]TRUE
[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]-100
[/TD]
[TD]TRUE
[/TD]
[/TR]
[TR]
[TD]XZY
[/TD]
[TD]200
[/TD]
[TD]FALSE
[/TD]
[/TR]
[TR]
[TD]XZY
[/TD]
[TD]-100
[/TD]
[TD]FALSE
[/TD]
[/TR]
</TBODY>[/TABLE]
In Excel the formula would be: =IF(SUMIF($A$2:$A$5;A2;$B$2:$B$5)=0;TRUE;FALSE). But how should I do this with DAX?
br,
Jack