Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi
i need to achive below table in powerbi if any order id having status as complete i need to mark all rows for that order id as Y
can you please help
order id | Status | complete flag |
244968 | Complete | Y |
244968 | open | Y |
244968 | cancel | Y |
269287 | open | N |
344968 | Complete | Y |
@Anonymous , Try a new column like
new complete flag =
var _cnt = countx(filter(Table,[order id] =earlier([order id]) && [status] ="Complete"),[order id] )+0
return
if(_cnt>=1, "Y",[complete flag])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |