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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
bdehning
Post Prodigy
Post Prodigy

Count number of Months

I use a Filter Slicer where uses select filter dates.     How could I show in a table the total number of months that were selected in the Slicer   So below would be 4.   

bdehning_0-1717800982293.png

 

 

1 ACCEPTED SOLUTION

I am actually using [Month Short] Text field and [Year] Whole Number for my X-Axis in my Visual which is controlled by Slicer Selection of filter date for [Date Completed]

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Very confused about your requirement.  How is the difference b/w those 2 dates 4 months?  Also, how can you show 4 months in a table.  Wouldn't you want to show the result in a card visual.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Do you have a YearMonth column in your calendar table?  In that case the formula would be count(distinct(Dates[YearMonth]))

I am actually using [Month Short] Text field and [Year] Whole Number for my X-Axis in my Visual which is controlled by Slicer Selection of filter date for [Date Completed]

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.