Forum Discussion

rsbin's avatar
rsbin
Community Champion
5 years ago
Solved

AddColumns from Another Table

Good Morning, I need to create a Summary Table.  I've got the first part which is creating a Table with Month End Dates from my Date Table:   = FILTER ( SELECTCOLUMNS ( DIM_Date_Slice...
  • rsbin's avatar
    rsbin
    5 years ago

    selimovd,

    Was finally able to solve this with the CROSSJOIN function.  Had to first create an intermediate table with the Distinct Client - Facility combinations I needed.  I'm sure there must be a way to do this in one step.  It may not be the cleanest solution, but at least it works for now.

    =CROSSJOIN(
    FILTER (
        SELECTCOLUMNS (
            DIM_Date_Slicer,
            "DateKey", DIM_Date_Slicer[DateKey],
            "MonthEndDate", DIM_Date_Slicer[Date] ),
        [MonthEndDate] = EOMONTH ( [MonthEndDate], 0 )),
        FactLiftClientFacility )

     Thanks again for your efforts!