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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Azzurra997
Helper I
Helper I

Date Hierarchy doesn't work

Hi All

 

I'm creating a report on power bi dekstop. I add to the page a bar chart as visuals, it shows sales during per day/per month/per quarter/per year. I set a bookmark to filter the chart by day, month, quarter and year. In the date field I set date if I want to see the cart by day and date hierarchy to see the graph by month, quarter and year

 

to see the graph only by month I left year, quarter and month

to see the graph only by quarter I left quarter and year

to see the graph by year I only left year

 

the issue is that when i publish the report if i filter the graph by month and by quarter i see the graph filtered by year, even if in the power bi dekstop i left quarter and month. Do you know how i can solve it?

 

thanks

 

Azzurra997_0-1678964045327.png

 

2 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

Hello @Azzurra997 ,

 

Try using field parameters to group the year / quarter / Month / Day and then add the value of this parameter to the X-axis and use the slicer to switch between them.

 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

Idrissshatila
Super User
Super User

Hello @Azzurra997 ,

 

you need to have seperate columns for Year, month, Quarter, Day and then you group them as shown in the following link


https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Idrissshatila
Super User
Super User

Hello @Azzurra997 ,

 

you need to have seperate columns for Year, month, Quarter, Day and then you group them as shown in the following link


https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Many thanks! I managed to do it. However, last question: how can I set a fixed sorting? i would like to sort the chart by date not by amount. I tried to click on the three dots and then sort axis, but it doenst remain fixed 

Azzurra997_0-1678974150055.png

 

Idrissshatila
Super User
Super User

Hello @Azzurra997 ,

 

Try using field parameters to group the year / quarter / Month / Day and then add the value of this parameter to the X-axis and use the slicer to switch between them.

 

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi, thanks! could you share a guideline or kindly explain how to group the dates by day, by month, by quarter and by year when creating a parameter? thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.