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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rainchong7401
Helper III
Helper III

.

.

2 REPLIES 2
Ahmedx
Super User
Super User

Column = VAR _Current =[Unit]
  RETURN
  IF(_Current="PAIL"|| _Current="TIN",1,0)
--
OR

Column 2 = VAR _Current =[Unit]
RETURN
IF(_Current in {"PAIL","TIN"},1,0)
download the file
Mahesh0016
Super User
Super User

@rainchong7401  Good Morning,

Mahesh0016_0-1672203519718.png

 


#"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Custom", each if [UNIT] = "PALLET" then 0 else if [UNIT] = "KG" then "0" else 1, type any)

**Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.