cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dcrow5378
Helper II
Helper II

Start Month and End Month Separate Slicers

Hello,

Does anyone have ideas on creating a start and end month slicer for months only?

Like so:

dcrow5378_0-1669672423128.png

I've tried the timeline slicer, it's too big and not what the end user is requesting.
I've tried the between slicer, but we do not want to display any days, only full months to prevent confusion.  Also, don't want to use relative date slicer.

I have a values table and a date table, and a second date table to get this screenshot.  Just don't know how to wire this whole thing up.

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

Hi, @dcrow5378 

You don't need to create additional relationships, you can create a custom measure and apply it to the visual filter pane to filter data.

filter = IF(MAX('Fact Table'[Date])>=MIN('Start Date'[Date])&& MAX('Fact Table'[Date])<=MAX('End Date'[Date]),1,0)

veasonfmsft_0-1669799144887.png

Please check my attached pbix for more details.

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @dcrow5378 

You don't need to create additional relationships, you can create a custom measure and apply it to the visual filter pane to filter data.

filter = IF(MAX('Fact Table'[Date])>=MIN('Start Date'[Date])&& MAX('Fact Table'[Date])<=MAX('End Date'[Date]),1,0)

veasonfmsft_0-1669799144887.png

Please check my attached pbix for more details.

Best Regards,
Community Support Team _ Eason

FreemanZ
Community Champion
Community Champion

this shall be doable with

1) Creating two separate data tables, each pulled to one slicer. 

2) Using SELECTEDVALUE to capture the selected values from slicers

3) Referring those values in your measure codes.

 

https://dax.guide/selectedvalue/

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.