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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 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.