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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

remove duplicates of date for same name but keep for different name

hello guys i have a table where

name  Date         Active
A8/1/2022Yes
A8/2/2022Yes
A8/3/2022Yes
A8/4/2022Yes
A8/5/2022Yes
A8/6/2022Yes
A8/7/2022Yes
A8/8/2022Yes
A8/9/2022Yes
A8/10/2022Yes
A8/11/2022Yes
A8/12/2022Yes
B8/1/2022Yes
B8/2/2022Yes
B8/3/2022Yes
B8/4/2022Yes
B8/5/2022Yes
B8/6/2022Yes
B8/7/2022Yes
B8/8/2022Yes
B8/9/2022Yes
B8/10/2022No
B8/11/2022No
B8/12/2022No
B8/10/2022Yes
B8/11/2022Yes
B8/12/2022Yes
B8/10/2022Yes
B8/11/2022Yes
B8/12/2022Yes


so i want to remove the duplicates of dates for B on 8/10/2022 , 8/11/2022 and 8/12/2022 to keep the "No" and remove the "yes" but i want to kep the dates for A 

this is my desired result:

NameDateActive
A8/1/2022Yes
A8/2/2022Yes
A8/3/2022Yes
A8/4/2022Yes
A8/5/2022Yes
A8/6/2022Yes
A8/7/2022Yes
A8/8/2022Yes
A8/9/2022Yes
A8/10/2022Yes
A8/11/2022Yes
A8/12/2022Yes
B8/1/2022Yes
B8/2/2022Yes
B8/3/2022Yes
B8/4/2022Yes
B8/5/2022Yes
B8/6/2022Yes
B8/7/2022Yes
B8/8/2022Yes
B8/9/2022Yes
B8/10/2022No
B8/11/2022No
B8/12/2022No



1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , a new table 

 

Summarize(Table, Table[Name], Table[Date], "Active", Min(Table[Active]))

 

 

Also in power query use group by with Min

 

refer the groupin part here https://amitchandak.medium.com/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try following DAX to create a new table:

New Table = FILTER('Table','Table'[name] <> "B" || NOT('Table'[Date] in {"8/10/2022" ,"8/11/2022","8/12/2022"})  || 'Table'[Active] <> "Yes")

vyadongfmsft_0-1663137768056.png

 

The result you want:

vyadongfmsft_1-1663137790532.png

 

Best regards,

Yadong Fang

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

@Anonymous , a new table 

 

Summarize(Table, Table[Name], Table[Date], "Active", Min(Table[Active]))

 

 

Also in power query use group by with Min

 

refer the groupin part here https://amitchandak.medium.com/power-bi-power-query-vs-dax-append-and-summarize-data-233f173d0839

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello what if i have the percentage of different number? What if investor C is yes but percentage for 10/1/2022 is 0.15 then 10/15/2022 is 0.2 and i have duplicates of percentage for same date so in 10/1/2022 till 10/31/2022 i have both percentage number so i want to have 0.15 from 10/1/2022 till 10/14/2022 and 0.2 from 10/15/2022 till 10/31/2022 i cant use the max([percentage]) becauee it will just show me 0.2 and if i use min([percentage]) it will just show me 0.15 for all the dates so how can i summarize it?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.