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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

New custom column, best way to merge ?

Hi awesome ppl,

 

I am currently using visual filter which works but could anyone please suggest best way to get this output column?

 

 

Student IDTypeYearly pay Output expecting
D00123DailyOther Daily
S00124SeasonalOther Seasonal
M00125SeasonalOther Seasonal
M00126MonthlyYearly Yearly
M00127MonthlyOther Monthly
D00128DailyOther Daily
D00129DailyOther Daily
S00130SeasonalOther Seasonal
D00131DailyOther Daily
M00132MonthlyYearly Yearly
M00137MonthlyOther Monthly
     
     
D = Daily    
S = Seasonal    
M = Monthly    

 

Thank you in advance

Van2050

1 ACCEPTED SOLUTION
drewlewis15
Solution Specialist
Solution Specialist

If I am understanding the logic behind the expected outcome then:

 

Custom column via the Power Query Editor: if [Yearly pay] = "Yearly" then "Yearly" else [Type]

New Calculated column: Output = IF('Table'[Yearly pay] = "Yearly", "Yearly", 'Table'[Type])

 

View solution in original post

2 REPLIES 2
drewlewis15
Solution Specialist
Solution Specialist

If I am understanding the logic behind the expected outcome then:

 

Custom column via the Power Query Editor: if [Yearly pay] = "Yearly" then "Yearly" else [Type]

New Calculated column: Output = IF('Table'[Yearly pay] = "Yearly", "Yearly", 'Table'[Type])

 

Anonymous
Not applicable

Both work like a charm, Thank you so much for your help.

Have a great weekend!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.