cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shakedb70
Frequent Visitor

dynamic (custom) dates column

Hi,

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

Here is an example:

shakedb70_0-1661200791279.png

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! 🙂

3 REPLIES 3
parry2k
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.





parry2k
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 https://youtube.com/playlist?list=PLiYSIjh4cEx2FkuGkngYruS0wm8MYFsoi






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

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.