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

dynamic dashboard: userinput for filter date_begin and date_end

I would like to have a dynamic dashboard.

The enduser wants to enter a begin and end date in his dashboard.

 

The original table is:

ID

startdate

enddate

hours

1

2017-12-01 00:00:00.000

2017-12-01 02:00:00.000

2:00

2

2017-12-02 00:00:00.000

2017-12-02 01:00:00.000

1:00

3

2017-12-01 00:00:00.000

2017-12-02 01:00:00.000

25:00

4

2017-12-03 00:00:00.000

2017-12-03 01:00:00.000

1:00

5

2017-12-03 00:00:00.000

2017-12-03 03:15:00.000

1:00

6

2017-12-05 00:00:00.000

2017-12-05 03:15:00.000

2:00

7

2017-12-01 00:00:00.000

2017-12-01 03:15:00.000

0:15

8

2017-12-06 00:00:00.000

2017-12-06 04:30:00.000

1:00

9

2017-12-09 00:00:00.000

2017-12-09 04:30:00.000

2:00

10

2017-12-01 00:00:00.000

2017-12-01 04:30:00.000

1:30

 

When the enduser filters on begindate 2017-12-02 and enddate 2017-12-05 in his dashboard only the following rows must be visualized

ID

startdate

enddate

hours

2

2017-12-02 00:00:00.000

2017-12-02 01:00:00.000

1:00

4

2017-12-03 00:00:00.000

2017-12-03 01:00:00.000

1:00

5

2017-12-03 00:00:00.000

2017-12-03 03:15:00.000

1:00

6

2017-12-05 00:00:00.000

2017-12-05 03:15:00.000

2:00

 

Startdate >= Selected_startdate AND endate <= Selected_enddate

 

  • How can I do this in a powerbi dashboard?
  • Do I need 2 calander tables?
  • Do I need a measure with a DAX function (what does the dax function look like?)

Please do you want to add some screenshots or is it possible to add a downloadable PBX?

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator v-yuezhe-msft
Moderator

Re: dynamic dashboard: userinput for filter date_begin and date_end

@BI_user,

Please download the PBIX file from the link below.

https://1drv.ms/u/s!AhsotbnGu1NogyDkrZposINAwiXU

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Moderator v-yuezhe-msft
Moderator

Re: dynamic dashboard: userinput for filter date_begin and date_end

@BI_user,

Please download the PBIX file from the link below.

https://1drv.ms/u/s!AhsotbnGu1NogyDkrZposINAwiXU

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

BI_user
Frequent Visitor

Re: dynamic dashboard: userinput for filter date_begin and date_end

Thanks Lydia. This works well!

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors