Dax - calculate - date in filter

jajamb

New Member
Joined
Apr 16, 2014
Messages
14
Hi.

I am trying to create a calculate or something, which sums 2 different keys from another column, based on a date.

Eksample:
[Values] = Sum(Value)

Month 1-9 is from [VersionKey]="ACT"
Month 10-12 is from [VersionKey]="Budget"

[Date] = Date column (month 1-12 in date format)
[CarryforwardDate] = Month 10 (in date format) This is variable


Code:
Estimate:=CALCULATE([Values];FILTER(FactTableBudget;IF(FactTableBudget[Date]>FactTableBudget[CarryforwardDate];FactTableBudget[VersionKey]="Budget";FactTableBudget[VersionKey]="ACT")))

This returns blank for month 1-10.

Any sugestions?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I found the problem..

Then [Carryforwarddate] was empty for "Act"

It works once this was corrected
 
Upvote 0

Forum statistics

Threads
1,224,144
Messages
6,176,648
Members
452,739
Latest member
SCEducator

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