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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
TodGrindley
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
v-yulgu-msft
Employee
Employee

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.
opticshrew
Resolver II
Resolver II

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

TodGrindley
Frequent Visitor

 

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. 

@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


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.