Forum Discussion
Help needed - filter, power queries and pivot
- Jun 04, 2023
Linking posts is appreciated, marking solutions helps people who Search - Thanks
See attached file that does what you expect in term of Count by Activity Status
There's probably something to do. However, what "MMMM yyyy" - or any other value i.e. null - should be returned in such a case?
- smsayedeeJun 01, 2023Copper Contributor
Lorenzo thanks for helping me out. I've attached a mockup spreadsheet so that I probably be able to explain my problem better. In the spreadsheet, the Sheet1 contains the raw data with sheet 'Table1' is the output of query. Now you would notice that there may be some blank rows in Table1, especially some may have start date but not the end date, some may not have both and others may be completely blank rows. I want these incomplete rows not to be included in the output of the query.
Therefore, incorporating your previous solution to get the period for each activity I want to create a pivot slicer with list of months that allows me to filter the activities that are occurring that month.
Again, thank you so much for your help with this. ๐
- peiyezhuJun 01, 2023Bronze Contributor
there may be some blank rows in Table1, especially some may have start date but not the end date, so
โwhat did you mean blank start end date in Table1?
They are all filled in the attachment.
And Table1 and Sheet1 are same?
pivot slicer with list of months that allows me to filter the activities that are occurring that month.
pivottable?
- smsayedeeJun 01, 2023Copper Contributor
peiyezhu sorry my bad. say there are rows with incomplete entry, e.g. start date there but not the end date, vice versa or both the columns are empty or even the complete row is empty (data yet to be entered).
blank means no value entered (null)
yes, thatโs the ultimate goal but in order to get there I would need a query that would list all months where an activity occuring between the start and end date.
does that help?
- LorenzoJun 01, 2023Silver Contributor
I want these incomplete rows not to be included in the output of the query OK, no problem
I want to create a pivot slicer with list of months that allows me to filter Do you run Excel on Windows?