Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
RENJITH_R_S
Resolver I
Resolver I

KPI Creation

Hello friends,

 

Please help on this requirement need to show traffic light indicator at the page level with the help of 2 calculated columns

 

see the attachmentScenarioScenario

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @RENJITH_R_S ,

Use the issue table as an example, you can create a measure like this and put it in the card visual without setting conditional format for it:

Traffice for issues = 
VAR _issues =
    SELECTEDVALUE ( Issues[Issue Flag] )
RETURN
    IF (
        NOT ( ISBLANK ( _issues ) ),
        SWITCH (
            TRUE (),
            _issues == 0, UNICHAR ( 128994 ),
            _issues = 1, UNICHAR ( 128993 ),
            _issues = 2, UNICHAR ( 128308 )
        ),
        UNICHAR ( 9898 )
    )

Default status:

before.png

When select an issue flag:

after.png

Risk table is the same as the issue table, just change the parameter in the variable.

Attached a sample file in the below, hope to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @RENJITH_R_S ,

Use the issue table as an example, you can create a measure like this and put it in the card visual without setting conditional format for it:

Traffice for issues = 
VAR _issues =
    SELECTEDVALUE ( Issues[Issue Flag] )
RETURN
    IF (
        NOT ( ISBLANK ( _issues ) ),
        SWITCH (
            TRUE (),
            _issues == 0, UNICHAR ( 128994 ),
            _issues = 1, UNICHAR ( 128993 ),
            _issues = 2, UNICHAR ( 128308 )
        ),
        UNICHAR ( 9898 )
    )

Default status:

before.png

When select an issue flag:

after.png

Risk table is the same as the issue table, just change the parameter in the variable.

Attached a sample file in the below, hope to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@RENJITH_R_S , You might have disply them on three cards .

 

If needed refer this :https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks @amitchandak Let me try this

amitchandak
Super User
Super User

@RENJITH_R_S , you can do icon formatting in table or matrix

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#add-ic...

or

https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thanks @amitchandak , for the response, I did it your idea in my table, but my requirement is need to show the 3 icons separately  on the table at top based on these 2 calc columns

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.