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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
prajwaljm24_
Frequent Visitor

Conditional Column

i have a data set which consists of column such as session id and project id 

sessionIdprojectId
995F966D-789D-4520-A4B0-000B09C6838A5211271
995F966D-789D-4520-A4B0-000B09C6838Anull
995F966D-789D-4520-A4B0-000B09C6838Anull
DBE4F4BA-8B3A-4750-B86F-000BE0FF0CAFnull
DBE4F4BA-8B3A-4750-B86F-000BE0FF0CAFnull
DBE4F4BA-8B3A-4750-B86F-000BE0FF0CAFnull
DF7DC6A0-13B5-453D-87F8-00153D5F013Fnull
DF7DC6A0-13B5-453D-87F8-00153D5F013Fnull
DF7DC6A0-13B5-453D-87F8-00153D5F013F5212095
1177DD53-CCC4-4B15-90A9-0020BA45D781null
1177DD53-CCC4-4B15-90A9-0020BA45D781null
1177DD53-CCC4-4B15-90A9-0020BA45D7815213617

here i need to replace the null values if the session id is same and if any of its corresponding project id is not null ,
how can i create a conditional column for this ?
for example "995F966D-789D-4520-A4B0-000B09C6838A" is repeating thrice and only one row has the project id value "5211271" now for the null rows i need to replace it with "5211271" 
how can i achieve this 



thank you 
@

novicepbixer

@

Greg_Deckler

@

 

2 REPLIES 2
amitchandak
Super User
Super User

@prajwaljm24_ , Try a new column

 

if(isblank([project id]), maxx(filter(Table, [sessionId] =earlier([sessionId]) && not(isblank([project id])) ), [Project id]) , [project id])

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi thank you for the solution 
can you help me achieve this in power query editor 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors