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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Saniat
Helper V
Helper V

Date Calendar with only end of Month Date

Hi,

In my data, I only have end of month dates e.g. 28 Feb, 31 Mar, and no other dates like 15 Jun, 22 Aug.

However, when I bring that date as a slicer, the slicer shows all the dates within max and min dates.

How can I only show the available dates in the dataset e.g. only end of the month dates ?

 

Thanks.

6 REPLIES 6
v-chenwuz-msft
Community Support
Community Support

Hi @Saniat ,

 

No, the default slicer of calendar always contains the date between the max date and min date.

You can try Timeline and show only year and month level. So that the end user can not see the day level.

 

Best Regards

Community Support Team _ chenwu zhu

 

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

PaulDBrown
Community Champion
Community Champion

It is recommended to use a Date table as a dimension whenever dates are involved. You could then filter the slicer using a measure:

Filter dates = COUNTROWS (RELATEDTABLE(Fact Table))

add the measure to the filter pane for the slicer and set the value to greater or equal to 1

 

As an alternative, you can create a dimension table for the dates you have using

Dates in fact table = DISTINCT(Fact table[Date])

and then create a relationship between this new table and the fact table, and use the date in the Dates table as the slicer





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I tried that. On the Date table, although I only have end of month dates available, when brought in as a slicer, it shows all the dates of the month.

I even created a separate table with manual end of month entries, and used it as a slicer, but unfortunately the slicer still shows days during the month.

Can you post a screenshot please?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown 

I have created a separate table for end of months:

Saniat_0-1655801786305.png


... which has been linked with the main table '1'.

When I bring in the Date Slider as a list, I see months and years only:

Saniat_1-1655801872395.png



But when I change this to a 'between' slicer, I can go to a mid-month date (which I do not want):

Saniat_2-1655801910484.png

 



 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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