March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi @Anonymous You might want to try switch statement
Column = SWITCH(TRUE()
,'Table'[Age Mth to Mth]="Yr 1","New Car"
,'Table'[Age Mth to Mth]="Yr 2","In Warr"
,'Table'[Age Mth to Mth]="Yr 3","In Warr"
,'Table'[Age Mth to Mth]="Yr 4","Out Warr"
,'Table'[Age Mth to Mth]="Yr 5","Out Warr"
,'Table'[Age Mth to Mth]="Yr 6","Aged Car"
,'Table'[Age Mth to Mth]="Yr 7","Aged Car"
,'Table'[Age Mth to Mth]="Yr 8","Aged Car"
,'Table'[Age Mth to Mth]="Yr 9","Fence Sitter"
,'Table'[Age Mth to Mth]="Yr 10","Fence Sitter","Fence Sitter")
Hi,
Create the second table and in the Query Editor, use the Merge Table feature to bring over the required column to your existing table.
Hi @Anonymous ,
I think your column [Age Mth to Mth] should be a calculated column, so you cannot find it in power query.
We can take a look at the article below: Calculated columns in Power BI Desktop, which explains the main difference between those two columns.
Hi @Anonymous You might want to try switch statement
Column = SWITCH(TRUE()
,'Table'[Age Mth to Mth]="Yr 1","New Car"
,'Table'[Age Mth to Mth]="Yr 2","In Warr"
,'Table'[Age Mth to Mth]="Yr 3","In Warr"
,'Table'[Age Mth to Mth]="Yr 4","Out Warr"
,'Table'[Age Mth to Mth]="Yr 5","Out Warr"
,'Table'[Age Mth to Mth]="Yr 6","Aged Car"
,'Table'[Age Mth to Mth]="Yr 7","Aged Car"
,'Table'[Age Mth to Mth]="Yr 8","Aged Car"
,'Table'[Age Mth to Mth]="Yr 9","Fence Sitter"
,'Table'[Age Mth to Mth]="Yr 10","Fence Sitter","Fence Sitter")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
120 | |
77 | |
59 | |
53 | |
40 |
User | Count |
---|---|
193 | |
106 | |
88 | |
62 | |
51 |