dumb DAX question

cduval

New Member
Joined
Jun 18, 2015
Messages
23
so I have a table and am trying to write a formula that essentially states "if these codes are are in this column, sum the values", but all three I've tried come back with (blank):

A99:=CALCULATE(SUM(dn_BillingMonthly[Corrected Billing Amt]),dn_BillingMonthly[Correct Code]="A2" && dn_BillingMonthly[Correct Code]="A3a" && dn_BillingMonthly[Correct Code]="A3b" && dn_BillingMonthly[Correct Code]="A4" && dn_BillingMonthly[Correct Code]="A5")

SUM:=CALCULATE(sum(dn_BillingMonthly[Billing_Net_EUR]),dn_BillingMonthly[Code 2]="A2" && dn_BillingMonthly[Code 2]="A3a")

SUM2:=CALCULATE(SUM(dn_BillingMonthly[Corrected Billing Amt]),FILTER(dn_BillingMonthly,dn_BillingMonthly[Correct Code]="A2"&&dn_BillingMonthly[Correct Code]="A5"))

does it matter that it's trying to find the correct codes in a calculated column?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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