Forum Discussion

ny326n's avatar
ny326n
Frequent Visitor
9 years ago
Solved

How to make an array formula in DAX?

Hello!   Earlier I've created a formula in Excel which I now want to translate into DAX, but can't manage to figure out how.    I have a table with all sales and these are some of colums: Assign...
  • v-ljerr-msft's avatar
    9 years ago

    Hi ny326n,

     

    Based on my test, the formula below should also work in your scenario. :smileyhappy:

    Column =
    IF (
        Data[Date and Time]
            = CALCULATE (
                MIN ( Data[Date and Time] ),
                FILTER (
                    ALL ( Data ),
                    Data[Creator User ID] = EARLIER ( Data[Creator User ID] )
                )
            ),
        "New",
        "Resale"
    )
    

     

    Regards