Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

dynamic (custom) dates column


I would like to create an option to filter data by chosen date range. 

Here is an example:


In this example you can see the data table on the left. in the middle you can choose a date range and by pressing the button you will add another column to the table that will be on display (the table on the right) with custom header according to the date range the client choose and with a value that sums up all the values in this range.

* Please notice that the button can be pressed multiple times and every time a column should be added in addition to the ones that were already added.

I would really appreciate some help, Thanks! 🙂

Super User
Super User

@shakedb70 well if that is what you are looking for then that is not possible in Power BI, in this case you need to use 


- some external source where you store the data

- Power Automate flow to embed in the power bi and on click ok button pass the value to Power Automate and write it in a table

-. Read that back in Power BI to refresh the visualization.



Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Super User
Super User

@shakedb70 it is pretty straightforward, add a date dimension in your model and set the relationship on date from the date dimension and transaction table. use the date from this new table as a slicer using between as an option and then add the following measure:


Total Employees = SUM ( YourTable[Hired Employees] )


and now you visualize this in a table to show the total employees hired in the range, to learn more about date dimension check my youtube playlist

Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi, Thanks for the reply but I think you didn't understand what I wanted to do, I want to have an option to add as many columns as I want to the table on the right every time the button is clicked according to the selected date range (so the user will be able to compare each date range value he adds with the others) but this solution won't work for more than one column added.

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.