Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago

Pivot using Date slicer/parameter

I have a pivot table I created using 2 fields. I would like to use a slicer so a date range can be requested. I dont know if this is possible since a date field is not part of the pivot. I am new to PowerBI so any help is welcomed. Thank you

15 Replies

  • Anonymous If you have a date column in your model that you wish to slice on, it doesn't need to be on the visual. It all depends on how your model is created, and what kind of relationship have between tables.

     

    in the end, the column you want to slice on doesn't need to be part of the visual.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you so much for the quick reply. 

    I remove columns, including the date column, before I create the pivot. Can I leave the date field in, create the pivot? Can I create a pivot once I get to the report/visual area?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Since I am new, I dont know how to keep the date in the table but out of the pivot. Can you explain how I can do this?

  • Anonymous Yes keep the date in the table, create a pivot without the date column, and use the date for filter.

  • Anonymous It will be easier if you share pbix file using one drive/google drive with the expected output. Remove any sensitive information before sharing.

  • Anonymous cannot download, it is saying access is denied.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I dont know how to unlock it.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Good morning. Any luck? If not please do not spend anymore time on it. I have another issue I am going to post. Thank you VERY much for your willingness to help.

  • Anonymous 

    1. Ensure the date column is present in the data you used to create the pivot. You donโ€™t need to display it in the pivot table, but it needs to be part of the dataset.
    2. Go to Visualizations, choose Slicer, and drag your date field into it.
      This will create a slicer visual that allows you to filter based on a date range.

    ๐Ÿ’Œ If this helped, a Kudos ๐Ÿ‘ or Solution mark would be great! ๐ŸŽ‰
    Cheers,
    Kedar
    Connect on LinkedIn

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for replying. Unfortunately it is not part of the pivot. Thats my issue. 

      Is there anyway around this? Do I just need to create a separate report and use a parameter? Since I am creating a pivot, I cant use a direct query, so I am not sure how to use a paramter.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, Anonymous 

    Thanks for Kedar_Pande and parry2k's replies. What is your current data holdings, can you share your non-sensitive data and what you expect to achieve, if it can be in the form of a picture it will help us to better understand your needs. There may be other ways to realize your requirement.

    Best Regards,
    Yang

    Community Support Team

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for replying. It is solved. I will mark it as such. I do have another issue but I will post it separately

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi, Anonymous 

        Very happy you were able to solve this problem, what is your current solution? You can share it and accept it as a solution to enable people with similar problems to find it faster. Thanks for your understanding.

         

        Best Regards,
        Yang

        Community Support Team