Forum Discussion
Conditional Column when creating a new column
Thank you for the reply, yeah so my worries is since i can't find the "no of yrs" in my power query as i want to do a conditional column. What can i do then?
here's my table inside the power query that doesn't include my new added "no of yrs" . Not really sure on how to do this inside the power query as because in power bi desktop i cant see the conditional column
Anonymous Can you create the column in Power BI again, and just before you finish creating it take a screen shot of the formula.
- Anonymous6 years agoNot applicable
Here's the column that i created, (it's inside the BI desktop not in BI Query)
- stvsurf6 years ago
Resolver I
Assuming you have the column [no of mths] in Power Query available, you can try this formula
if Number.RoundUp([no of mths]/12,0) > 10 then " >Yr 10" else Text.Combine({"Yr ",Number.ToText(Number.RoundUp([no of mths]/12,0))})
- Anonymous6 years agoNot applicable
Hi both no of months and no of yrs are new columns that i created in power bi desktop hence when i check inside the power query i can't find either one of them. 😞