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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
paris
Helper V
Helper V

NEW COLUMN

Hi All,

 

I have Sales table and would like to add Category colulmn by using New Column in modeling function. 

If Products are Apple or Orange or Banana, I would like to add Fruits in category. 

Can you help to write fomular?

 

PowerBI.PNG

 

All the best,

Paris

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try this calculated Column

 

Category = IF(([Products]="Apple" || [Products]="Orange" || [Products]="Banana"),"Fruits","")

 

Let me know if it helps!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Try this calculated Column

 

Category = IF(([Products]="Apple" || [Products]="Orange" || [Products]="Banana"),"Fruits","")

 

Let me know if it helps!

Thank you very much for your help!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.