Forum Discussion

MatthewMcD's avatar
MatthewMcD
Regular Visitor
9 years ago
Solved

Conditional Formatting

Brand new and on the steep learning curve for PowerBI...   I see a lot of people asking for Conditional Formatting. I would like to do something akin to "info graphics" in Excel, where the values "...
  • parry2k's avatar
    parry2k
    9 years ago

    Ok so it is possible, here are the steps:

     

    First upload/host these icons (images) somewhere where these can be accessed publically, I'm calling these 3 files as below

     

    warning.png

    failed.png

    passed.png

    unknown.png

     

    You can give your own name to these file and change formula accordingly.

     

    1. Add new column to you dataset, may be call it "ImageURL" add this formula

     

    ImageURL = 
    CONCATENATE("http://mywebsite/path/",
    if(myTable[Level] = "Warning", "warning.png"
    if(myTable[Level] = "Failed", "failed.png"
    if(myTable[Level] = "Info", "passed.png", "unknown.png"
    ))))

    2, On Data modelling tab, set Data Category for ImageURL to Image URL (as shown below)

     

     

    3. Now add table visual on your canvas and add following fields from your table:

     

    Name

    Level

    ImageURL

     

    and you will see icons based on the images.

     

    THanks,

    Parv