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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
voonwah
Frequent Visitor

Show Filter data with multiple column

Hi All,

 

I'm new to PowerBI and currently working on a single dataset, would like to filter the result of user and the subscription.

 

The user are having multiple subscription in both contract, 

Can someone please advise how i can create a new column "duplicate" to show that if user is having duplicate subscription with value "YES" or"NO".

 

For example User1@email.com is duplicating his "subscription 1" in both contract, please help since this involving multiple column filtering.

 

Email AddressDepartmentSubscriptionContract
User1@email.comDepartment ASubcription 1Contract A
User2@email.comDepartment ASubcription 2Contract A
User1@email.comDepartment BSubcription 1Contract B
User1@email.comDepartment BSubcription 3Contract B
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

HI @voonwah ,

 

Create a column with below code:-

Column =
IF (
    COUNTROWS (
        FILTER (
            'Table',
            'Table'[Email Address] = EARLIER ( 'Table'[Email Address] )
                && 'Table'[Subscription] = EARLIER ( 'Table'[Subscription] )
        )
    ) > 1,
    "Yes",
    "No"
)

 

Output:-

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
voonwah
Frequent Visitor

@Samarth_18 Thanks and it works 🙂

Samarth_18
Community Champion
Community Champion

HI @voonwah ,

 

Create a column with below code:-

Column =
IF (
    COUNTROWS (
        FILTER (
            'Table',
            'Table'[Email Address] = EARLIER ( 'Table'[Email Address] )
                && 'Table'[Subscription] = EARLIER ( 'Table'[Subscription] )
        )
    ) > 1,
    "Yes",
    "No"
)

 

Output:-

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.