Forum Discussion

ovetteabejuela's avatar
ovetteabejuela
Icon for Impactful Individual rankImpactful Individual
9 years ago
Solved

DAX Formula to retrieve a Field value

Hi Everyone,   I'm in need of your help to formulate a DAX function to retrieve a field value. The image below should be able to describe what I wanted to achieve.     EDIT: please assume ...
  • Phil_Seamark's avatar
    Phil_Seamark
    9 years ago

    In DAX you can do it this way :

     

    DailyRoam = SELECTCOLUMNS(
        FILTER(
                    CROSSJOIN('Dates','Places')                ,
                    'Places'[From This Day] <= 'Dates'[Date] && 'Places'[To This Day] >= 'Dates'[Date]
                    ),
                    "Where I'm at on this day",'Places'[Where I'm At],
                    "The date is" , Dates[date])

    But it does rely on you having a [Dates] table which if missing can be generated like this as a new table

     

    Dates = CALENDARAUTO()

    You don't need any relationships.