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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
SmitShah_16
Regular Visitor

Power BI Report Builder - Dynamic Parameter data type error text to int filter data.

Hello,

I have one requirement that I have One parameter as Start Month and Another Parameter as End Month in format as "MMM - YYYY" in text.
So, When I select Start month as ""Apr - 2024" then end month will be automatically greater than equal to april month.
So, that i have achieved but when the table filter the data it filter only selected month only like if i select start month = Apr 2024 and end month = June 2024. So, i am able to see only data from April -2024 and June -2024. It not showing May 2024. It is due to text value of parameter.
So, my requirement is that i need to show value as Apr - 2024 but i need filter the table in tablix as month number = 4.
How to achieve this?
Please someone help me here.

SmitShah_16_0-1720691968563.png

 




2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi,
To filter your data based on month numbers while displaying the text format "MMM - YYYY," you can create an additional calculated column in your data source that converts the month text to a corresponding numeric value. Then, use this numeric column for your filtering logic. In your Power BI Report Builder, set the parameters to filter based on this numeric column while displaying the text values. This approach ensures accurate filtering across the selected date range.

Regards,
Chiranjeevi Kudupudi

View solution in original post

bradsy
Microsoft Employee
Microsoft Employee

For cases like this, I usually will set the prameter value as a number and parameter label as readable text where the value and label are tied 1->1 mapping in my data.  Something like DateMonth as integer and DateDisplayMonth as whatever I like to call it.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,
To filter your data based on month numbers while displaying the text format "MMM - YYYY," you can create an additional calculated column in your data source that converts the month text to a corresponding numeric value. Then, use this numeric column for your filtering logic. In your Power BI Report Builder, set the parameters to filter based on this numeric column while displaying the text values. This approach ensures accurate filtering across the selected date range.

Regards,
Chiranjeevi Kudupudi

bradsy
Microsoft Employee
Microsoft Employee

For cases like this, I usually will set the prameter value as a number and parameter label as readable text where the value and label are tied 1->1 mapping in my data.  Something like DateMonth as integer and DateDisplayMonth as whatever I like to call it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.