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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Spazia
Frequent Visitor

Date hierarchy slicer, dynamic value

Hello, 

I have in my table date from May and June. 

In the future this table will expand with the years. 

 

I've a Hierarchical date slicer in which I display the year and the month. When I chose 2020, it shows all the month of the year from January to december.

Even if I only have date of May and June. 

 

Does anyone know How I can manage to display only the month for which I have dates ?

 

Thanks for your help ! 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @Spazia 

That because you are using built-in date hierarchy in the slicer, it likes you drag it into table visual too.

So, you could custom create a year column, month column and day column, then drag them into slicer.

Result:

3.JPG

 

and here is sample pbix file, plase you it.

 

Regards,

Lin

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

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi  @Spazia 

That because you are using built-in date hierarchy in the slicer, it likes you drag it into table visual too.

So, you could custom create a year column, month column and day column, then drag them into slicer.

Result:

3.JPG

 

and here is sample pbix file, plase you it.

 

Regards,

Lin

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

@Spazia 

I think it will be uncorrect ideologically if Hierarchical date slicer will hide a part of Calendar 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Spazia
Frequent Visitor

@az38, I agree with you. But a slicer showing values for which there is no data behind is misleading for the end-users.

 

My objective is for 2020 I have the months of May and June. And in the end of the year I'll have all the months from May to December.

 

In January 2021, I'd like to be able to show only January for 2021.

 

If there is no possibility to make that, I could live with that and have in my slicer a concatenation between month & year. 

Anonymous
Not applicable

I fully agree with you on the misleading point. Did you find a solution? I am also struggling with this. I have for example a whole report page where I pretty much reporting the same stuff - let's say sales numbers for different groups of products.

 

I have one general slicer to select the product group as in most cases, it is pointless to compare figures across product groups and do not want to make pages for each new product groups. So now because of this weird (default?) slicer behavior, I get all dates in my date slicers regardless of wether the product group was introduced this year or last year. Is there an easy way to fix this by now?

 

Cheers, AAB

Anonymous
Not applicable

Hey,

Unfortunately I didn't find any solution...

Sorry 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.