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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.