Forum Discussion
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
- parry2kSuper User
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.
- AnonymousNot 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?
- AnonymousNot 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?
- parry2kSuper User
Anonymous Yes keep the date in the table, create a pivot without the date column, and use the date for filter.
- parry2kSuper User
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.
- AnonymousNot applicable
https://drive.google.com/file/d/1hQLbA2DQXswVEAem_s32Cz6ZPJ4vRZJv/view?usp=drive_link
The data is from a test database. Page 2 has what the final pivot should be. I very much appreciate your help.
- AnonymousNot applicable
I just changed the access. Please try again
- parry2kSuper User
Anonymous cannot download, it is saying access is denied.
- AnonymousNot applicable
I dont know how to unlock it.
- AnonymousNot 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.
- Kedar_PandeSuper User
Anonymous
- 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.
- 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- AnonymousNot 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.
- AnonymousNot 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- AnonymousNot 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
- AnonymousNot 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