Forum Discussion

skaul's avatar
skaul
New Member
3 years ago
Solved

To apply calculated field

Hi 
I have three column in backend 1) start date 2) end date and 3) calcultaed column created which captures todays date 

i have created a column validatedFlag where applied a condition where if (datesbetween(currentdate,startdate,endDate),"X","") now I want to apply a conditional formating (icon) in front end on validatedFlag column like where the value will be X i need red cross icon and where there is blsnk value i need green circle. How to achieve?

2 Replies

  • Adamboer's avatar
    Adamboer
    Responsive Resident

    To apply conditional formatting (icon) in Power BI on the "validatedFlag" column, follow these steps:

    1. Select the "validatedFlag" column in the Fields pane.
    2. Click on the "Conditional formatting" button under the "Visualizations" pane.
    3. Select "Icons" from the dropdown menu.
    4. Choose the "X" option under the "Set icons" section.
    5. Choose the "Red cross" icon under the "Icon style" section.
    6. In the "Icon criteria" section, select "is" and enter "X".
    7. Click on "Add another rule" to add another condition.
    8. Select "Icons" from the dropdown menu.
    9. Choose the "O" option under the "Set icons" section.
    10. Choose the "Green circle" icon under the "Icon style" section.
    11. In the "Icon criteria" section, select "is blank".
    12. Click "OK" to apply the formatting.

    Once the above steps are followed, the "validatedFlag" column will have a red cross icon where the value is "X" and a green circle where the value is blank.