Power BI Conditional Text Formatting Made Easy

Ғылым және технология

Say hello to the other Super Data Brother - Eric! In Eric's debut episode we cover the absolute best way to create conditional text formatting in Power BI bar none. In this video you will learn:
- How to use the conditional formatting feature
- How to convert text to numbers to enable easy conditional formatting
- How to easily update formatted colors
#powerbi #businessintelligence #dataanalytics

Пікірлер: 83

  • @mariamoreira9896
    @mariamoreira98963 жыл бұрын

    what if the text contains a certain word, and I want to give a number based on what the text contains, and not based on an single value?

  • @superdatabros

    @superdatabros

    3 жыл бұрын

    Hey Teresa. Thanks for the Question! If you go to the 4:00 mark and use this Dax in the calculated column instead then it should work for you: Position Status Color= SWITCH( True(), CONTAINSSTRING(data[Position Status], "Vac"), 1, CONTAINSSTRING(data[Position Status], "Off"), 2, CONTAINSSTRING(data[Position Status], "ill"), 3, CONTAINSSTRING(data[Position Status], "anceled"), 4, 5 ) This uses CONTAINSSTRING() to evaluate if the [Position Status] string contains the string part you specify. So if [Position Status] has "Vac" anywhere in the string, then you'll get a 1. "Off" you'll get a 2. So on so on. You can just follow the rest of the video from that point on! -Eric

  • @mariamoreira9896

    @mariamoreira9896

    3 жыл бұрын

    @@superdatabros thank you so much for the explanation!

  • @superdatabros

    @superdatabros

    3 жыл бұрын

    Glad to help! -Eric

  • @skhumbuzomjoji3575
    @skhumbuzomjoji35752 ай бұрын

    Thank you so much for this! It worked like a charm!!

  • @clayfisher3194
    @clayfisher31942 жыл бұрын

    I wasn't aware of the "Switch" function but it's very simple to use and effective. Thanks for being awareness to it!

  • @paultsiprush1347
    @paultsiprush1347 Жыл бұрын

    thank you this man, everone else's tutorials were completely off topic

  • @user-mr3mz9tk1p
    @user-mr3mz9tk1p2 жыл бұрын

    finally, was looking for this exactly!!

  • @Metalblowing
    @Metalblowing2 жыл бұрын

    Man, you have 5k views but this video just saved me a ton of time. Was doing a POC that involved creating some dummy stuff in Power BI. Great job & easy explanation. Cheers & have a grand day.

  • @rakhmanamangeldiev2468
    @rakhmanamangeldiev24683 жыл бұрын

    Super video! Thanks a lot! I would like to see more of Power BI videos from you!

  • @superdatabros

    @superdatabros

    3 жыл бұрын

    Ask and you will receive! New PBI video premiering today! -Eric

  • @phorton968
    @phorton9682 жыл бұрын

    Your explanation made it so simple to keep putting food on my table. Thanks!!

  • @hongmei1487
    @hongmei1487 Жыл бұрын

    Thank you so much! I had spent lots of time on this issue, then come across your video. voila, you helped me!

  • @superdatabros

    @superdatabros

    Жыл бұрын

    Glad it helped!

  • @fayefouladi2973
    @fayefouladi2973 Жыл бұрын

    Your video is super helpful. I was able to color format my field based on your instruction.

  • @tammykaribo
    @tammykaribo Жыл бұрын

    Thank you for This!! Solved a major problem

  • @RICARDOORICARDOO
    @RICARDOORICARDOO2 жыл бұрын

    Eric!!, thanks a lot my friend, I was searching for this solutions for many hours, your explanation and solution is so Simple and Friendly, that I cant believe why I didn't figure out before...thanks a lot "super data brothers" you have saved me :)

  • @trickberganos2991
    @trickberganos29912 жыл бұрын

    Great video man! Thanks so much for posting this! 👍

  • @gyansagar5126
    @gyansagar5126 Жыл бұрын

    Thanl you! It was helpful tip.

  • @kebincui
    @kebincui2 жыл бұрын

    Good work around for this issue. Thank you so much for sharing 👍

  • @kelechie.2011
    @kelechie.2011 Жыл бұрын

    Very helpful. Thank you

  • @superdatabros

    @superdatabros

    Жыл бұрын

    You're welcome!

  • @dustinwojcicki4200
    @dustinwojcicki42002 жыл бұрын

    Very Easy! Thank you!

  • @AntonioCariasArias
    @AntonioCariasArias2 жыл бұрын

    You save my life brother, Thanks!!!

  • @sujittkulkarni1561
    @sujittkulkarni15613 жыл бұрын

    Very Much helpful Thanks

  • @tsicola
    @tsicola2 жыл бұрын

    Worked great. Thank you.

  • @witneyh9353
    @witneyh93532 жыл бұрын

    thank you sooooooooooo much this was exactly what I was looking for :D

  • @skinnyulam6801
    @skinnyulam6801 Жыл бұрын

    very helpful! thanks so much!

  • @riteshbarthwal5024
    @riteshbarthwal50242 жыл бұрын

    Thanks brother for this video helped me a lot ❤️

  • @ericagooch8595
    @ericagooch8595 Жыл бұрын

    Saving lives!!! Thanks!

  • @ElBarbie23
    @ElBarbie23 Жыл бұрын

    This was helpful thank you!

  • @JoaoAlves-dg5cb
    @JoaoAlves-dg5cb Жыл бұрын

    thank you

  • @michaelfarrell4376
    @michaelfarrell4376 Жыл бұрын

    Great video! I liked the way you showed the problem of trying to set up the formatting without the extra number column; this is exactly the process I went through! One question - if I want to format the whole row, is there a quick way of doing this or do I have to set up the formatting rules for each field one at a time.

  • @David-ky4vu
    @David-ky4vu2 жыл бұрын

    Great Vid thanks

  • @albertojosemarinarguedas9720
    @albertojosemarinarguedas9720 Жыл бұрын

    Thank you!

  • @Apollokzn
    @Apollokzn Жыл бұрын

    It works! Thanks

  • @MrShashi20
    @MrShashi202 жыл бұрын

    Thanks a lot!!!!

  • @genevieve3676
    @genevieve36762 жыл бұрын

    Thank you for this idea that is working well when we have a define number of texts to describe but I was wondering if you have another tips for text begining by Z*** to put in red or if if the text is blank/empty, then put it in red too. Thanks

  • @devicesjundu9726
    @devicesjundu97262 жыл бұрын

    Great tip. thanks a lot

  • @dniggebrugge
    @dniggebrugge Жыл бұрын

    Thanks, clear explanation

  • @evangelinekiku7380
    @evangelinekiku73802 жыл бұрын

    Great video. It was very helpful. Thank you. What about a scenario where the values are not the same. For example, a value may be Exampl*2, Example*3, and you need this value to have the same color.

  • @slinger420
    @slinger420 Жыл бұрын

    perfect video, it exactly does what i wanted to do. Would data load slowly if i created a column in powerquery editor instead of just there in dax?

  • @sarj4918
    @sarj49182 жыл бұрын

    Wow, i can't believe this is the only way

  • @rohanmohammad5953
    @rohanmohammad59532 жыл бұрын

    Thank you for this wonderful tip. I had an issue when I published the PBI report and the table didnt show up since I didnt add the Status Num color column to the table and I dont want to display that , I got an error - The visual has unrecognized fields. Is there a way to fix this.

  • @2408heineken
    @2408heineken Жыл бұрын

    Thanks for the video! I wonder if this will work with other columns

  • @karensoapa959
    @karensoapa9592 жыл бұрын

    Thank you.

  • @SouravMondal-hb8rz
    @SouravMondal-hb8rz10 ай бұрын

    This is awesome. Can we apply conditional formatting on a perticular cell, not on entire column?

  • @paultsiprush1347
    @paultsiprush1347 Жыл бұрын

    so I would need to create extra columns for every column that I wish to conditional format text in?

  • @lilykadivar5871
    @lilykadivar58713 жыл бұрын

    Thank you for the video! In doing the conditional formatting (icons), I only have 2 values in the Summarization field when I select 'Rules' for formatting: Count and Count (Distinct). This leads to the calculated value always being '1'. Would you know how I could get the average option added to the Summarization field, like yours in the video?

  • @superdatabros

    @superdatabros

    3 жыл бұрын

    Hey Lily. Great question! You need to make sure you change the *Based on field* dropdown from the default of *"Count of Position Status"* to *"Position Status Color Num"* (the calculation we created in the video). This will let you choose sum or average instead of just count. You can go to 6:10 in the video to see me do this. Thank you for watching! Feel free to ask any more questions and keep your eyes peeled for new videos! -Eric

  • @lilykadivar5871

    @lilykadivar5871

    3 жыл бұрын

    @@superdatabros Thanks for the quick response Eric! Unfortunately when I select on my "Status Color" (name of my new field) from the Based on field dropdown, it automatically changes it to "Count of Status Color". Any ideas why that might be?

  • @superdatabros

    @superdatabros

    3 жыл бұрын

    @@lilykadivar5871 Hmmm. Make sure that your Status Color column is defining numbers instead of of strings. If the column contains strings, then the only summarization options are count. So make sure that in the Dax it's "Vacant",1, instead of "Vacant","1", Remove the quotes from the number. Cheers! -Eric

  • @lilykadivar5871

    @lilykadivar5871

    3 жыл бұрын

    @@superdatabros You were right, it worked!!! Thanks so much! Great catch :)

  • @user-ht9ct4ih8p
    @user-ht9ct4ih8p9 ай бұрын

    let's suppose I have 2 measures and concatenate in one calculation so I want to give it distinct colors in both fields. Is it possible to power bi?

  • @clodola1
    @clodola12 жыл бұрын

    How do you implement the same functionality in a Bar chart , if the Bar is Vacant then Green , if filled then Blue

  • @user-dp2mp9sq4c
    @user-dp2mp9sq4c5 ай бұрын

    what if i want to apply the same formatting on all the columns based on value of position status?

  • @jq2514
    @jq25142 жыл бұрын

    Hi @superdatabrothers, what if I have multiple "Position Status" columns? Should I do it one column at a time?

  • @superdatabros

    @superdatabros

    2 жыл бұрын

    If I'm understanding you question correctly, then yes. You'd want to apply conditional formatting to each column you want formatted. You can have them all reference the same "Position Status Color Num" column to make things quicker. -Eric

  • @stephenhorry7526
    @stephenhorry75262 жыл бұрын

    hi, Really good video. How can i conditional formatting on dates? For example if the date in Power PowerBI has expired it goes red

  • @laikiucobbychoi4336
    @laikiucobbychoi433610 ай бұрын

    I want a particular cell without build in the conditional formatting, can I do that?

  • @zhang2003
    @zhang2003 Жыл бұрын

    Hi, how can I do a wild card e.g. instead of looking for the word vacant, I want anything that starts with "vac" to highlight, so I can highlight words like vaccine vacation, etc. I tried contains and I tried switch, any help will be appreciated, thanks

  • @ybunsee
    @ybunsee Жыл бұрын

    I did it as you have shown but my background is still not changing from color. That is so weird. Is it because i am using values from 2 different excelsheets in my PowerBI?

  • @Sandroider
    @Sandroider2 жыл бұрын

    Can I copy conditional formatting settings to another field?

  • @cherianiype
    @cherianiype4 ай бұрын

    THIS IS COOL! please - can you show me how to customize the Y-axis data labels please? i need a specific color for 1 particular item.. on the y-axis.. thx.. Cherian from Abu Dhabi .. 29.Feb.2024

  • @maheshshandilya8215
    @maheshshandilya82152 жыл бұрын

    What do I do if I want a red font if value 0 ? Please help

  • @reanalytics1863
    @reanalytics1863Ай бұрын

    I have this measure that returns text such as 50/12% BAC+ = IF([# BAC+]>0, FORMAT([# BAC+],"0") & "/" & FORMAT([% BAC+],"0%"),"") I want to conditionally format this measure using the following measure Met Bac+ target = IF( [bac+ target]

  • @RedZombieKiller
    @RedZombieKiller2 жыл бұрын

    how would you do this but using a measure instead of a column?

  • @sdineshdine9198
    @sdineshdine9198 Жыл бұрын

    Hi .in summarization option..not showing average option...only showing counts option even after make calculated column with number...pls solve this

  • @MasweghoChris
    @MasweghoChris Жыл бұрын

    How would we do this with a measure isnstead of column?

  • @nithishreddy5673
    @nithishreddy56732 жыл бұрын

    How to apply this colour formatting,based on a column's text to its corresponding values of different columns

  • @Kumarbehera22
    @Kumarbehera222 жыл бұрын

    In a coloumn I have these 1(opened ticket) 3 (opened ticket) 2(closed ticket) 2(opened ticket) 4(closed ticket) 4(opened ticket) How to give conditional formatting

  • @Kumarbehera22

    @Kumarbehera22

    2 жыл бұрын

    In these I need to give CF on opened ticket green n red for closed

  • @superdatabros

    @superdatabros

    2 жыл бұрын

    Use CONTAINSSTRING to find if the strings in the column contain 'opened' or 'closed'. Go to 4:00 and use this dax instead of what's in the video. Position Status Color= SWITCH( True(), CONTAINSSTRING(data[Position Status], "opened"), 1, CONTAINSSTRING(data[Position Status], "closed"), 2, 3 ) Then follow the rest of the video for how to apply conditional formatting. -Eric

  • @Lee16889
    @Lee16889 Жыл бұрын

    can we bold rows ?

  • @shashwattiwari1991
    @shashwattiwari19912 жыл бұрын

    But the total row is appearing in my view after conditional formatting but not in your view why????

  • @np9511
    @np95112 жыл бұрын

    How to highlight entire row?

  • @jack.1.
    @jack.1.2 жыл бұрын

    All going well until conditional formatting doesnt show as an option when I try for a row

  • @ryclark15
    @ryclark15 Жыл бұрын

    The text I am trying to "switch" are the words TRUE and FALSE. I keep getting this error - Function 'SWITCH' does not support comparing values of type True/False with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.

  • @Joauluiz1

    @Joauluiz1

    Жыл бұрын

    Same problem here :(

  • @np9511
    @np95112 жыл бұрын

    How to make entire row?

  • @slinger420

    @slinger420

    Жыл бұрын

    use the row field

  • @OneNI83
    @OneNI834 ай бұрын

    Adding a calculated column for this type of formatting is really bad idea.there are many ways to do this without using calc column.

Келесі