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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
hhammeren
Frequent Visitor

Bar Graph Interaction with Date Slicer

I made a bar graph that summarizes Net Sales by month. I have a year slicer manipulating the graph. What I don't like is that when more than one year is selected the months from all years are combined so you cant distinguish the data.

Below is a visual example when more than one year is selected:

select.PNG

 

 

I would LIKE if i could scroll through the years and months seperatly on this bar graph. For example if more than one year is selected have something like this...

 

idea.PNG

Is there anything I can to filter this graph more efficiently?

 

Thanks in advance!

 

Hannah

1 ACCEPTED SOLUTION

Hi @hhammeren

You can carry out the following steps:

1. Take your Date field instead of the Year/Month field and drag it on the Axis.

2. A Date Hierarchy will automatically be generated (as shown in the sample screenshot below)Capture.JPG

3. Just keep the Year and Month fields under that hierarchy. (By default the hierarchy would give you Year > Quarter > Month > Day)
4. Click on any one of the year bars on the visual, it will drill down to the Month level

View solution in original post

4 REPLIES 4
v-jiascu-msft
Microsoft Employee
Microsoft Employee

@hhammeren

 

Hi Hannah,

 

We need a few steps.

1. Use "Date Hierarchy, keep "year" and "month";

2. Expand all levels down;

 

Bar Graph Interaction with Date Slicer.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Thank you for your response.

It looks like I may have a different version because I do not have the "date Hierarchy" option. See below.

 

Date Hierarchy.PNG

Hi @hhammeren,

 

As @ketan10's post said, the column "date" will generate a Date Hierarchy automatically if the data type of "date" is date or date/time.

 

Best Regards!

Dale

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

Hi @hhammeren

You can carry out the following steps:

1. Take your Date field instead of the Year/Month field and drag it on the Axis.

2. A Date Hierarchy will automatically be generated (as shown in the sample screenshot below)Capture.JPG

3. Just keep the Year and Month fields under that hierarchy. (By default the hierarchy would give you Year > Quarter > Month > Day)
4. Click on any one of the year bars on the visual, it will drill down to the Month level

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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