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
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
Super User
Super User

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