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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AW1976NOVA
Post Patron
Post Patron

Custom Column: New column to categorize value as one or another

Hi,

 

In my master table (Claim Data Pull) there is a field named (Total Paid).  I would like to create a column in that table that specifies whether or not the Total Paid amount qualifies as a "High Cost Claim", a "Medium Cost Claim", or "Neither High or Medium Cost Claim".

 

1) A "High Cost Claim":  Greater than or equal to $50,000

2) A "Medium Cost Claim":  Is Greater Than or Equal to $25,000 and less than $50,000

 

I tried creating / using  a 'Conditional Column' but you can't specify inbetween ranges.

 

 

Please help.  Thank you.

1 ACCEPTED SOLUTION
VasTg
Memorable Member
Memorable Member

@AW1976NOVA 

 

Add a custom column in query editor and paste this.

 

=if [Total Paid] >= "50000" then "High Cost Claim" else if [Total Paid] >= "25000" and [Total Paid] < "50000" then "Medium Cost Claim" else "Neither High or Medium Cost Claim"

 

 

If  this helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn

View solution in original post

1 REPLY 1
VasTg
Memorable Member
Memorable Member

@AW1976NOVA 

 

Add a custom column in query editor and paste this.

 

=if [Total Paid] >= "50000" then "High Cost Claim" else if [Total Paid] >= "25000" and [Total Paid] < "50000" then "Medium Cost Claim" else "Neither High or Medium Cost Claim"

 

 

If  this helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.