Forum Discussion

Hoggy's avatar
Hoggy
Frequent Visitor
8 years ago
Solved

Date Hierarchy issue on a graph

I am self taught on Power BI and loving it! I developed the perfect report for my needs with data from Jan'18 to August '18. Using a field in my data "Posted Invoice Date".   Once I had the report ...
  • Ashish_Mathur's avatar
    8 years ago

    Hi,

     

    This is what you should be doing:

     

    1. Create a calendar table with the following calculated column formulas YEAR=YEAR(Calendar[Date]) and Month=FORMAT(Calendar[Date],"mmmm")
    2. Create a relationship from the Date column of your base data table to the Date column of your Calendar Table
    3. Using the "Sort by column" feature, sort the Months in the calendar Table by the Order column in the Calendar Table
    4. In your visual, drag Year and Month from the Calendar Table

     

    Hope this helps.