Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everybody,
I have an order table with multipe orderlines against a unique order ID.
Requirement: If status column contains shipped or ready even for a one line item I want to fill all the rows for that specific order ID in custom_column with the word shipped.
order_id line_item status custom_column
1 abc shipped shipped
1 def pending shipped
1 ghi ready shipped
1 klm shipped shipped
2 nop penidng
2 qrs penidng
Thank you so much for any help in this regard.
Rashid Anwar
Solved! Go to Solution.
@rashidanwar , a new column
new column =
var _cnt = countx(filter(Table, [order_id] =earlier([order_id]) && [status] in {"shipped","ready"}),[Order_id])
return
if(isblank(_cnt), blank(), "shipped")
@rashidanwar , a new column
new column =
var _cnt = countx(filter(Table, [order_id] =earlier([order_id]) && [status] in {"shipped","ready"}),[Order_id])
return
if(isblank(_cnt), blank(), "shipped")
@amitchandak Thank you so much man.
It worked!
Can you please shed some light on that how actually countx is working in this specific context?
Thank you.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.