Forum Discussion

wollensack's avatar
wollensack
Frequent Visitor
3 years ago
Solved

Highlight Fields when duplicate value found in table

Hello All,

I have a power Bi Table visual, I want to highlight any records in the field "Impacted Code" which has a value duplicated.
I tried to create a measure and link it using "Conditional Formatting" but unfortunately it failed. Hope someone can assist me.
Table = "Faults"

CustomerIDImpacted CodeStatusAge in DaysOpenedResolvedSLA Met
Happy LolliesBI461BI461Closed314/03/202316/03/2023NO SLA
Happy LolliesBI479BI479Resolved230/03/202331/03/2023NO SLA
Happy LolliesBI372BI372Closed56/03/202310/03/2023NO SLA
Happy LolliesBI338BI372Pending1830/03/2023 NO SLA
Happy LolliesBI263BI338Resolved527/03/202331/03/2023SLA Met
Happy LolliesBI729BI263Resolved21/03/20232/03/2023SLA Met
Happy LolliesBI483BI263Pending3414/03/2023 NO SLA
Happy LolliesBI207BI207Pending2028/03/2023 NO SLA
Happy LolliesBI818BI818In Progress471/03/2023 SLA Missed
Happy LolliesBI839BI355Closed16/03/20236/03/2023NO SLA
Happy LolliesBI272BI355Closed28/03/20239/03/2023NO SLA
Happy LolliesBI355BI355Closed115/03/202315/03/2023SLA Met
Happy LolliesBI526BI526Closed109/03/202318/03/2023SLA Met
Happy LolliesBI379BI379Closed115/03/202315/03/2023SLA Met

 

Frank Wollensack

  • Hi,

     

    you can set up a calculated column:

     

    Column =
    var _distinct = 'Table (3)'[test]
    return

    CALCULATE(
        COUNTROWS('Table (3)'),ALL('Table (3)'),
        'Table (3)'[test] = _distinct
    )
     
    then apply that to conditional formatting:

     

     

    hope this helps

     

    If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

3 Replies

  • DOLEARY85's avatar
    DOLEARY85
    Resident Rockstar

    Hi,

     

    you can set up a calculated column:

     

    Column =
    var _distinct = 'Table (3)'[test]
    return

    CALCULATE(
        COUNTROWS('Table (3)'),ALL('Table (3)'),
        'Table (3)'[test] = _distinct
    )
     
    then apply that to conditional formatting:

     

     

    hope this helps

     

    If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

  • wollensack's avatar
    wollensack
    Frequent Visitor

    thankyou all for the help , sadly only could accept one solution