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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Cotadwaree
Regular Visitor

If and else

Hello,

 

I have a column called XYZ in an excel which has the values of 123, 456, 789, OTHER, EXPIRED in each rows respectively. How can i group or convert the (123, 456, 789) as ACTIVE.

 

Currently Power BI  will appear 5 bar charts of 123, 345, 789, OTHER, EXPIRED

 

When i add a Conditional Column, i do:

 

If XYZ equals "OTHER" then "Other Partners"

Else if XYZ equals "EXPIRED" then "Expired Contracts:

 

OTHERWISE "ACTIVE"

 

And when the Conditional column is created, the ACTIVE is not grouping the (123, 456, 789).

 

But i would need Power BI to show only 3 bar charts only such as ACTIVE, OTHER, EXPIRED.

 

Can you  please help me how to fix this?

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hi @Cotadwaree

 

Look if you are following the same steps.

CC.png




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

hi @Cotadwaree

 

Look if you are following the same steps.

CC.png




Lima - Peru

Hello,

 

Yes Now it's working perfectly.

 

I'm not able to understand why it did not work or which mistake i did and it was not working.

 

but after watching your picture, now it's working..

 

Man thanks a lot.  You are genius.

 

You truly saved my day...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors