Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Creating a date column

Hi there,   I have a data model with two fact tables (Fact_actual and Fact_budget) and a Date table (Dim_Date). The date table should "link" both fact tables. The Fact_actual table has a proper dat...
  • v-yueyunzh-msft's avatar
    v-yueyunzh-msft
    3 years ago

    Hi, Anonymous 

    Thanks for your quick response!

    When the [Period]=1, the date is the Dec in the last year.Here are the steps you can refer to :

    We can click "Custom Column" and enter this:

    if [Period]=1 then #date([FY]+2000-1,12,1) else #date([FY]+2000,[Period]-1,1)
    
    

    Then we can modify the data type we want :

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly