Forum Discussion

vsolanon's avatar
vsolanon
Frequent Visitor
6 years ago

Error in Date slider slicer

Hello Experts,

 

I am creating my first Dashboard and hope you can guide me through, 🙂

My Dashboard in PowerBi desktop is connected to a SharePoint list. The SP list has a Date/Time column named "Modified". 

I want to display the dates within the column "Modified" in a Timeline slicer in order to be able to filter by a time range the information displayed in the Dashboard. Currently, this is not working since the slider is not showing any information about dates.

In PowerBi desktop I have modified the field related to "Modified" to Date, instead of Date/Time without success.

Thank in advance!

 

5 Replies

  • vsolanon

    Typically Date time should work fine as the date. But making data type Date might not remove its timestamp.

    Create a new column like

    Modified date 1 = [Modified date].date

    Or

    Modified date 1 = date(year( [Modified date]),month( [Modified date]),day( [Modified date]))

     

    Try if this gives you the correct result.

     

    if you need more help make me @. Provide some sample data and output

    Appreciate your Kudos.

     

    • vsolanon's avatar
      vsolanon
      Frequent Visitor
       

      Hi amitchandak Greg_Deckler, thank you both for the response!

       

      Kindly note when I tried to add a column using the expression suggested, I got the below error: Expression.Error: The name 'Date' wasn't recognized. Make sure it's spelled correctly.

       

      I included the timeline from the option "Import from AppSource", I guess it might not be a default date range slices since I manually included.  This is the icon and is named "Timeline". 

      I mentioned it was without success because when I added the Timeline I noticed the information (the dates) were not populated. Please find below an image of how the timeline looks after I included "Modified" under the Time field.

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Icon for Community Champion rankCommunity Champion

        Sample data. We cannot give you a solution if we don't know the column names, etc.