Forum Discussion

UK_User123456's avatar
UK_User123456
Resolver I
7 years ago
Solved

Dates based on two different FY

Hi All,

 

I have 2 table(s) that has two different dates that I want to combine into 1 table (picture below), the first is "Last Gift Donated" and the second is "Last Gift Date".

I have done a calc that gives me the difference between the two dates, however the problem is if I put a FY filter in, it changes both the dates, whereas I need to have two filters so that the "Last Gift Donated" is filtered on FY18/19 and the second filter will filter "Last Gift Date" for FY 19/20, so that I can calculate the difference between the two. 

 

Is this possible?

 

TIA

5 Replies

    • UK_User123456's avatar
      UK_User123456
      Resolver I

      Unfortunately, I cant append or merge through power query as the dates are measures, so they dont appear in the power query editor, is there any other way?

       

      Thanks

      • Iamnvt's avatar
        Iamnvt
        Continued Contributor

        hi,

         

        looks like you want to modify the outer filter of your "last gift donation" measure to be previous year, and keep "last gift date" as the current selection in the filter. So you can try this measure:

        new last gift donation = Calculate([last gift donation], SAMEPERIODLASTYEAR (Calendar[Date]))

        so when you filter FY 19/20, this measure will give you the "last gift donation" of FY 18/19.

         

        if still not ok, then please give a sample dataset.