Forum Discussion
Help to conditional format text in a specific Column
Hi I want to achieve something on my report where the data will conditional format for any text value that is repeated more than once. I want this to highlight to the viewer that the text is appearing more than once after the data has been filtered. I've been trying for a long time to figure it out and can't seem to make it work.
I've attached a photo of the desired outcome if possible
Thanks
8 Replies
- amitchandakSuper User
Jwood993 , Create a measure
color =
var _cnt = countx(filter(allselected(Table) , [Name] =earlier([Name]) ), [Name])
return
if(_cnt >1, "Green" , "White")
Use this in conditional formatting, using field value option
How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/1682539- Jwood993Frequent Visitor
Hi when editing it comes up with some error
- The main sheet is called "Convert" but Store Name is a header in that sheet
- SolomonovAntonSuper User
hello !
you should create measure
color = var _RowsCnt = COUNTROWS('Table') var _Result = IF(_RowsCnt>1,"Green",BLANK()) return _Resultafter do apply it measure to conditional formating background
do the same settings
you will get follow result
if I answered at your question please make topic as resplved 🙂
- Jwood993Frequent Visitor
Hi It's not working and it doesn't let me select the specific column heading that i want to assign the formatting to. It only comes up with the original table name.
Thanks
- SolomonovAntonSuper User
please describe with more details then I could be help you
- Jwood993Frequent Visitor
Hello please let me know if more information is required
- SolomonovAntonSuper User
could you share your pbix file ?
I think it will be best way for resolve case