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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AnthonyJoseph
Resolver III
Resolver III

Add a column check if the project existed last year

Hi Community,

 

I have a dataset similar to the below, I need to create a column which can return True if the same combination of portfolio and project has existed (could be either active/yet to start/completed) last year, if not it should return false. I am not sure if this is achieveable in power query-please can someone help me on this.

AnthonyJoseph_0-1679941705701.png

Thanks,

AnthonyJoseph

 

1 REPLY 1
BA_Pete
Super User
Super User

Hi AnthonyJoseph,

 

Group your table on [Portfolio] and [Project].

In the Group By dialog, add one aggregation column that uses the 'Count Rows' operator.

Add another that uses the 'All Rows' operator.

Exit the Group By dialog and add a new custom column like this:

if [countColumn] > 1 then "TRUE" else "FALSE"

Now expand your 'All Rows' column back out again to reinstate your original table.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.