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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Luis_Caston
Helper III
Helper III

Calendar segments

Dear all,

I want to create a campaing calendar. That is to say imagine:

Cherry: April to august.
Apple: January to December.

And if I select Cherry that filter to the months of the calendar.

I'm thinking something like that:

Var _cherry = months April to August.

Var _apple = months January to December.

And returns two options: Cherry & Apple

Do you know how can I do it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Luis_Caston 

If you use the between type of the slicer, the month slicer cannot affet the date slicer, it will always display the min and max date of the calendar unless you move the it manually, if you want the date filter to be filtered by the month slicer, you need to change the date filter type to dropdown, it can change by the month slicer.

vxinruzhumsft_0-1706515904951.png

 

Best Regards!

Yolo Zhu

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

7 REPLIES 7
Ahmedx
Super User
Super User

and pls try this

Screenshot_1.png

Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

Hi @Ahmedx !!
This approach is perfect!
Do you know hay can I add it as a column to this calendar?
By the way I'd like to set up three periods:

1 - Apple:
From 08 (year in curse) to 06 of the next year.

2 - Cherry:
From 04 (year in curse) to 07 year in curse.



Calendar 

Anonymous
Not applicable

Hi @Luis_Caston 

You can refer to the following sample.

The date table.

vxinruzhumsft_1-1706237234921.png

1.Create a type slicer table.

vxinruzhumsft_0-1706237209491.png

2.Create a measure and put the measure to the visual filter of the date

Measure = IF(ISFILTERED('Table'[Type]),IF(MONTH(MAX('Table 2'[Date]))>=MAX('Table'[from])&&MONTH(MAX('Table 2'[Date]))<=MAX('Table'[to]),1,0),1)

vxinruzhumsft_2-1706237307606.png

Output

vxinruzhumsft_3-1706237323141.png

vxinruzhumsft_4-1706237330843.png

Best Regards!

Yolo Zhu

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

 

 

Hi @Anonymous !
I've tryed your solution but I'm not able to do it.
Please could you check this pbix Calendarv3 

Thank you for your support.

Campaing Segment Calendar Dear @Ahmedx , @Anonymous 

Thank you so much for your support.
I think that the best approuch thinking in a global filter is your .pbix @Anonymous but the problem that I've is that I'm not able to convert it as a global filter (to all pages) only to the object.

I upload a .pbix with all the dates and so on.

Do you know how I can do something like this:

Luis_Caston_0-1706269773690.png

Campaing Segment Calendar 

Anonymous
Not applicable

Hi @Luis_Caston 

If you use the between type of the slicer, the month slicer cannot affet the date slicer, it will always display the min and max date of the calendar unless you move the it manually, if you want the date filter to be filtered by the month slicer, you need to change the date filter type to dropdown, it can change by the month slicer.

vxinruzhumsft_0-1706515904951.png

 

Best Regards!

Yolo Zhu

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

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.