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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zqlcancer
Frequent Visitor

How to create new column in table or matrix to analyze another column

I am able to create a table based on below sample RAW data in PowerBI and generate a new measure called 'Score'. The logic is to use numbers of "good" minus numbers of 'Bad', then divided by total number of 'Rate' value.

 

My question now is how to create another column in PowerBI table to analyze this new measure 'Score', e.g. if 'Score' is greater than 0 then SL2, otherwise SL1. I tried to create another measure using if or switch but it did not work. Any suggestion would be much appreciated.

 

zqlcancer_0-1684921976145.png

 

1 ACCEPTED SOLUTION
zqlcancer
Frequent Visitor

Thanks. This is werid. By the time I posted this question, I can not create a measue using "if" direclty. I just retried and I can use 'if' now.

View solution in original post

2 REPLIES 2
zqlcancer
Frequent Visitor

Thanks. This is werid. By the time I posted this question, I can not create a measue using "if" direclty. I just retried and I can use 'if' now.

v-jingzhang
Community Support
Community Support

Hi @zqlcancer 

 

You can create a measure with

SL = IF([Score] > 0, "SL2", "SL1")

This measure categorizes the 'Score' measure based on whether it is greater than 0 or not. Then add it to the same table visual where [Score] is located. Did you try this measure?

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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