Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Changing value types in power bi

Hello Everyone, 

I have an interest rate table which contains years and according values.  In my year column there are only years like (2017, 2018). The data type of this year table is decimal number and while adding this table to the axis of the line chart it gives me mixed year hierrarchy. So, I know I shoul change the data type of year column to the date type but whenever I try this I get years like 1905/1906.

Can anyone knows how can I deal with it?

 

  • Hi , Anonymous 

    Try steps as below:

    1.chose field "year " and right click to choose "new hierachy"

     

     

    2.right click field "Quarter" to choose "add to hierachy" ->"Year Hierarchy"

    it will show  as below:

     

    3. Then click "..." in visual to  choose " sort ascending " ,"sort by Year Quarter"  

     

    4.The result will show as below

    If I misunderstand something ,please let me know.

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

     

     

6 Replies