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
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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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