Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper III
Helper III

Display warning message if the count of selected months from the date slicer is more than 3 months

Hi all,


I want to create a measure that counts the selected months from a date slicer and if it is more than three months, then display a warning message.


I have tried this measure: Multi_Selected_Months = CONCATENATEX ( VALUES ( financials[Month Name] ) , [Month Name] , ",")

but it is for displaying selected months.


Can anyone please suggest a solution for this?


Much thanks!!

Super User
Super User

Hi @NKotak_Leecare 
You can use this DAX formula for counting selected Months:

 counter = IF(ISFILTERED(dates[month]), COUNTROWS(VALUES('dates'[month])),0)

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

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors