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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
surajde
Helper I
Helper I

column fill down with a condition

Hi All, 

 

Please help me with below scenario where calculated column needs to be filled down with a condition. 

if ticket number is same then work queue should be filled down and until then "No WQ". 

when ticket number changes then No WQ util Work_Queue has a value. then logic continues. 

final result should look like column N = WQ-Full

 

surajde_1-1693305614803.png

 

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @surajde 

 

You can try the following methods. First add index column in the Power Query.

vzhangti_0-1693448142739.png

Column = 
Var _N1=CALCULATE(MAX('Table'[Index]),FILTER('Table',[Index]<=EARLIER('Table'[Index])&&[WORK_QUEUE]<>BLANK()))
Return
IF(_N1=BLANK(),"NO WQ",CALCULATE(MAX('Table'[WORK_QUEUE]),FILTER('Table',[Index]=_N1)))

vzhangti_1-1693448463694.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for help but this one is not helping when there are multiple tickets.. Please help write formula with multiple ticket numbers in the first column. 

Initially there may not be a queue for new ticket but queue will be assigned later as you can see in first tticket. 

amitchandak
Super User
Super User

@surajde , First use fill down in Power Query and then replace null with No-WQ

 

Power Query - Fill Up Fill Down: https://youtu.be/mC2ps0pFqBI

 

Power BI- Power Query Conditional Replace Value- https://youtu.be/Qj2bthdusiM

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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