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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
SmitShah_16
New Member

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors