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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

User Input selecting a month

Below is a screenshot of some of my data.

What can I do so that Aug22 and 23 are not hardcoded? I want user to select month and these values change based on which month was selected. I dont even know what it is called in PBI and what to look for

 

marzwrob_0-1695206014622.png

 

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

You add the main value column without the filtering to a specific month, then use a slicer having the month in it and you can filter the data through it.

check this out https://www.spguides.com/power-bi-date-slicer-by-month/

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Anonymous
Not applicable

thanks @Idrissshatila , slicers are a great idea, however how would you sort out something like year to date calculations - e.g. if I select August in a slicer I want part of the calculation which looks like the following to look up that value from slicer:

 

NumberOrders_Aug22 
= CALCULATE(DISTINCTCOUNTNOBLANK(invoices),(DATESBETWEEN(inv[createdAt].[Date], START_DATE, ENDDATE)))

** where STARTDATE is a month Start of the Slicer
** ENDDATE is a month end of the slicer 

 

Also I would need to show That month from -1 year

 

Thanks!

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.