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
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
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.