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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to replace value in a Date Column by user using parameter or function?

Hi Team,

 

I have one table with a date column. I want changes/update date value by the user.  Like, I have one date -1/20/2020 and I want to replace with this value to 1/25/2020. I don't want to go every time to replace my value in the query editor. It wants to display a popup window to replace the value. I need this functionality like a parameter or run time function. Is there any Dax or function?

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

in Power BI you cannot place a parameter in the visuals and give this information back to Power Query.

What you could do however to create 2 tables with one column (date)... one for replace and the other for replace with. Put both columns as a filter value in the visual. Create a new date column in your fact? table where you check if one date is selected in the first table. If yes and if in this column the date it's equal to the selected value and if a date is selected in the second table, replace it.

 

However if you are doing this in Excel, you can create a table with both dates, and then integrate the data in power query. So when a refresh is launched, the data is read from this table and integrated in an output.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

1 REPLY 1
Jimmy801
Community Champion
Community Champion

Hello @Anonymous 

 

in Power BI you cannot place a parameter in the visuals and give this information back to Power Query.

What you could do however to create 2 tables with one column (date)... one for replace and the other for replace with. Put both columns as a filter value in the visual. Create a new date column in your fact? table where you check if one date is selected in the first table. If yes and if in this column the date it's equal to the selected value and if a date is selected in the second table, replace it.

 

However if you are doing this in Excel, you can create a table with both dates, and then integrate the data in power query. So when a refresh is launched, the data is read from this table and integrated in an output.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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