Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Split Column without Duplicates

Hi, I'm pretty new to PowerBI so any help would be appreciated. I have a dataset (called 'Asset Reg') coming from a Sharepoint list which gives me the below data. Id Vendor Dept 4 ...
  • v-lid-msft's avatar
    v-lid-msft
    6 years ago

    Hi Anonymous ,

     

    we can try to add a calculated column to meet your requirement:

     

    Shared = 
    IF (
        CALCULATE (
            DISTINCTCOUNT ( 'Asset Reg'[Dept] ),
            FILTER ( 'Asset Reg', 'Asset Reg'[Id] = EARLIER ( 'Asset Reg'[Id] ) )
        ) > 1,
        IF (
            [Dept]
                = CALCULATE (
                    MIN ( 'Asset Reg'[Dept] ),
                    FILTER ( 'Asset Reg', 'Asset Reg'[Id] = EARLIER ( 'Asset Reg'[Id] ) )
                ),
            "Shared Asset",
            BLANK ()
        ),
        "Not Shared"
    )

     

     


    Best regards,