Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
NJ81858
Helper IV
Helper IV

Date Visual Randomly Reformatting

Hello,

 

I have a visual that records my organizations reviews, into good and bad, and then the net number of good reviews over time and I want it to be set to a date hierarchy, with only the month being in the hierarchy, but it will randomly reformat from a hierarchy to just the regular date and I'm not sure what is going on with it.

 

This is my visual working correctly with the hierarchy in place:

Date Visual.PNG

 

 

This is what the visual looks like when it will randomly reformat:

Date Visual2.PNG

 

 

I am just not sure what is causing this switch, and this will need to get fixed somehow, as the viewers need to be able to see it in a hierarchy format, as the plain date format is too difficult to interpret. Thank you in advance!

2 REPLIES 2
adudani
Super User
Super User

In the data view  create the hierarchy:

adudani_0-1672174102390.png

 

In the report view, ensure the hierarchy created is on the axis as shown in the picture below:

adudani_1-1672174199452.png



Please refer to this video for more information: How to create and use a Power BI Hierarchy - YouTube

(114) Ragged Hierarchies in Analysis Services with Power BI and Excel - YouTube

 

If this solution resolves your query, please accept it as the solution.

Appreciate a thumbs up if this post helps.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

@adudani 

 

Yes I know, I currently have the date as a hierarchy, my issue is that it will randomly switch between being a hierarchy, and being a regular date. 

 

This is my visual when it is correct, with the hierarchy, note that only the month is present, which is what I want it to be:

Visual1.PNG

 

This is my visual after it will go through a random change and switch to a non-hierarchy date field:

Visual2.PNG

 

 

There is nothing that I change in the background that causes this, I will just have a report viewer reach out to me that the visual has changed and I have to manually go in and change it back to the hierarchy and republish my report, which is frustrating to both the viewers and myself. The only possible thing that I can think of is that I changed the DAX code to my date table one time around a month ago to allow for further backtracking of the data, but I don't believe that this would cause ongoing problems now. My DAX Code that creates my date table is:

Dates = CALENDAR( DATE( YEAR( TODAY() )-1, 1, 1 ), DATE( YEAR( TODAY() ), 11, 30 ) )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors