Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Format a text value to look like a date value in DirectQuery

Hello everyone,   I have a DQ model, which means I can't use the FORMAT function. I needed to create a calculated column of type "Text" to store a bucket of date values, along with a text value of ...
  • v-juanli-msft's avatar
    7 years ago

    Hi Anonymous

    I can reproduce your problem.

    Please create columns

    Column = MONTH([Week Due])&"/"&DAY([Week Due])&"/"&YEAR([Week Due])
    
    Week Due Bucket2 = IF([This Week] > [Week Due], "Past Due", [Column])

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.