Forum Discussion

Johnsnowlife's avatar
Johnsnowlife
Helper III
8 years ago
Solved

Finding first date shared by multiple products

I am trying to find the first date where my table has information for all selected portfolios.  My table looks like this.     I'm thinking of something like this (written in english): Min (i...
  • Johnsnowlife's avatar
    Johnsnowlife
    8 years ago

    Thanks for all the help!

     

    These are the formulas I used to reach my desired result. 

    FirstSharedDate =
    CALCULATE (
        MAXX (
            SUMMARIZE (
                ALLSELECTED ( AllPerfMnthly[Portfolio] ),
                [Portfolio],
                "ABCD", MIN ( AllPerfMnthly[Date] )
            ),
            [ABCD]
        ),
        ALLEXCEPT ( AllPerfMnthly, AllPerfMnthly[Portfolio] )
    )
    
    InceptionDate =
    CALCULATE (
        FIRSTNONBLANK ( AllPerfMnthly[Date], AllPerfMnthly[Date] ),
        ALLEXCEPT ( AllPerfMnthly, AllPerfMnthly[Portfolio] )
    )