Forum Discussion
nalinda116
6 years agoRegular Visitor
Conditional column using text string
Hi, I have a data base which include debt follow-up remarks (calls) written in unstructured manner. I need to create a new/ conditional column to classify them in to 03 categories as "effective",...
amitchandak
6 years agoSuper User
nalinda116 , Not sure I got it. create a color measure using min/max of first nonblank on category column like this
Color Date = if(FIRSTNONBLANK(Table[date],TODAY()) <today(),"lightgreen","red")
if(FIRSTNONBLANK(Table[Value],"true") "true","green","red")
Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))
Color = if(FIRSTNONBLANK(Table[Year],2014) <=2016 && AVERAGE(Sales[Sales Amount])<170
,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))
Then in conditional formatting use field option and use this measure
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
- nalinda1166 years agoRegular Visitor
Thanks for the reply!
But in involves "text" reading. I updated the original post with an example.
- v-juanli-msft6 years agoCommunity Support
Hi nalinda116
You could use conditional column in Transform data.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.