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

Using One slicer for 2 fields

 

Hi,

 

In my Task Table I have 2 fields [Start Date] and [Finish Date]. When I add a slicer, it only allows me to add 1 slicer which is either for Start Date or for Finish Date. (See link below)

https://www.screencast.com/t/5ZRWsaMvNUt

 

What I want is to have one slice with both fields. That way i can select a Start Date and a Finish Date, and the data will provide me with tasks that are between the selected Dates. To look something like the following the below link.

 

https://www.screencast.com/t/NDSBKYa0uXVa

Any Ideas? Would appreciate any help I can get. Been stuck on this for quiet some time. 

4 REPLIES 4
TodGrindley Frequent Visitor
Frequent Visitor

Using One slicer for 2 fields

 

Hi,

 

In my Task Table I have 2 fields [Start Date] and [Finish Date]. When I add a slicer, it only allows me to add 1 slicer which is either for Start Date or for Finish Date. (See link below)

https://www.screencast.com/t/5ZRWsaMvNUt

 

What I want is to have one slice with both fields. That way i can select a Start Date and a Finish Date, and the data will provide me with tasks that are between the selected Dates. To look something like the following the below link.

 

https://www.screencast.com/t/NDSBKYa0uXVa

Any Ideas? Would appreciate any help I can get. Been stuck on this for quiet some time. 

OwenAuger Super Contributor
Super Contributor

Re: Using One slicer for 2 fields

@TodGrindley

There are a couple of approaches you can take:

  1. See this article
    Reshape your data so that you have a single date column corresponding to each date a task is active.
    e.g. if Task A has Start Date = 1/1/2018 and End Date = 5/1/2018, then you end up with something like

    Task A1-Jan-2018
    Task A2-Jan-2018
    Task A3-Jan-2018
    Task A4-Jan-2018
    Task A5-Jan-2018
     
  2. Leave your existing data structured as-is (with Start Date & End Date columns), but

Regards,

Owen



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

Proud to be a Datanaut!




Highlighted
opticshrew Member
Member

Re: Using One slicer for 2 fields

Hi @TodGrindley

 

The method you've done already is something that many people do and it works it just isn't that intuitive and requires more clicks than should be needed.

 

What you could do is through the query editor create a new column named "Days Active". Here you would list the days between the start and end date. Your slicer would then be on this field and would only show tasks where they were active on a specific day.

 

Dates Between

Dates = { Number.From([Start]..Number.From([End]) }

 

Expand that list to new rows and you'll have the days where a task is active. It might be worth duplicating the table before creating the column to use as reference.

 

Unique Tasks > Task Details (with column)

 

Hope this helps,

J

Microsoft v-yulgu-msft
Microsoft

Re: Using One slicer for 2 fields

Hi @TodGrindley,

 

As of now, it is not possible to add two fileds (start date and end date) into a single slicer. For your requirement, you may submit an idea here.

 

Best regards,

Yuliana Gu

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors