Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RichJW
Helper III
Helper III

Look up value of a column, not containing a specific field in another column

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 TableTest 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

1 ACCEPTED SOLUTION
AlperenA
Regular Visitor

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. 

AlperenA_0-1721733884965.png

AlperenA_1-1721733906917.png

 

 

View solution in original post

2 REPLIES 2
RichJW
Helper III
Helper III

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?

AlperenA
Regular Visitor

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. 

AlperenA_0-1721733884965.png

AlperenA_1-1721733906917.png

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors