0

Need some help with building a case statement. My information brought back is telemetry based and need to adjust where a solution name is "Excel" I need it to rename it to "Microsoft Excel" (just an example). The coloumn with the data is called "Solution name".

Something in the line of Where solution name is "excel" then "MS excel"

Any help will be useful, thanks

Code below

let
    Source = Sql.Database("xx.xxx.xx.xx\Telemetry", "TELEMETRY"),
    dbo_Lookup_solutions = Source{[Schema="dbo",Item="Lookup_solutions"]}[Data]
in
    dbo_Lookup_solutions
Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786
  • Possible duplicate of [How do I use T-SQL's Case/When?](https://stackoverflow.com/questions/3342319/how-do-i-use-t-sqls-case-when) – Nope Nov 17 '17 at 12:01

1 Answers1

0

Case when solution like ‘%excel%’ then ‘msexcel’ else solution end

Ab Bennett
  • 1,391
  • 17
  • 24