Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Convert Year and Quarter into YYQQ using DAX

Hello, Anonymous    I have dataset that contains date and have to manually create the formula in excel to extract the Year and Quarter from the date and then upload it into Power BI. But, this is a...
  • Max_'s avatar
    Max_
    1 year ago

    Hi Anonymous ,

    Yes, I quickly tested this in one of my reports that contains a date column. Here are the steps that I did:

     

    1. Go to table view of the report. The column I used is called "Period" and formatted as a Date value. 
    2. Add a calculated column:
    3. Enter the code from my previous answer (might be required to change the column name of the Date column, e.g. mine is called Period):
    4. New columns gets calculated:

       



    Did you do it the same way? At which point did you experience the error (and do you have some screenshots that would help me to better look into this)?