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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Date Filtering

Hi Power Bi Community, 

 

I want to create a slicer which gives an option to choose the month in 2022 and the outcome in the table should show the ongoing job in that chosen month. For example, if i were to choose the month March, my table should show the Job A, Job B and Job D as these three jobs are currently ongoing in that month.

 

This is the table that I have right now:

Afiq_Danial_0-1666766876980.png

 

I want my slicer to look like this:

Afiq_Danial_1-1666767372353.png

 

Thank You! Appreciate all the help i can get!

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

You can try formula like below:

M =
VAR min_ =
    MONTH ( MIN ( 'Table'[Start] ) )
VAR max_ =
    MONTH ( MIN ( 'Table'[End] ) )
VAR sel_month =
    MONTH ( SELECTEDVALUE ( 'Table 2'[Date] ) )
RETURN
    IF ( sel_month < max_ && sel_month >= min_, 1, 0 )

vhenrykmstf_0-1667295708946.png

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

You can try formula like below:

M =
VAR min_ =
    MONTH ( MIN ( 'Table'[Start] ) )
VAR max_ =
    MONTH ( MIN ( 'Table'[End] ) )
VAR sel_month =
    MONTH ( SELECTEDVALUE ( 'Table 2'[Date] ) )
RETURN
    IF ( sel_month < max_ && sel_month >= min_, 1, 0 )

vhenrykmstf_0-1667295708946.png

 

If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

Anonymous
Not applicable

Hi

 

Just inseert fields Date and month from of your date Table in the slicer and you will have this view

Anonymous
Not applicable

I tried doing that but the slicer wont have any effects at all to the table, i made sure they are both connected too

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.