Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
I hope someone can help with this PBI query.
I need to get a column of data in a table showing the following query…
If Status 'does not equal' "Completed”,
Give me the date of the previous "Reg. Date" of the same "Content"
Test Table
So, in the example above, for Bob it would show 21/06/23
For Martha it would show 04/08/23
I then need to only show those more than a year before [today], so it would only show Bob’s in the example above, however I guess a simple filter on the column would do that.
Any help appreciated.
Thanks all,
Rich
Solved! Go to Solution.
Hi,
In Power Query editor, you can filter column status equal completed than select content and user columns and group by in transform tab. Add date column as aggregation with max operator.
Hi, I was wrong, this solution doesn't work. It pulls through the last date for every user, whereas I only want it for those with a 'Status' not equal to "Completed". I cannot apply such a filter afterwards, as I've already filtered for "Completed" only in the editor. Any other thoughts, please?
Hi,
In Power Query editor, you can filter column status equal completed than select content and user columns and group by in transform tab. Add date column as aggregation with max operator.
User | Count |
---|---|
84 | |
75 | |
69 | |
48 | |
39 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |