Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Guys, I need your support please, I need to remove duplicates selecting 4 columns based on 5th column value condicationally:
The current script carries out removing the duplications of 4 selected columns:
= Table.Distinct(#"Divided Column", {"HR ID", "Employee Name", "Exception Duration", "Date"})
Now, how to set this in condition if "Exception Type" = "Daily"
Solved! Go to Solution.
@Anonymous
You may check the steps in the pbix
Best regards
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
Can you share/paste some sample data and show the expected output from Excel to correctly understand your question.?
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Current dataset (2nd image)
Desired output (1st image)
I'm looking at your top image as the desired output. It seems to include duplicates (lines 2 and 3) as well as an Exception type of Monthly. I thought you wanted those removed? Can you clarify?
@Anonymous
Do the following steps:
1. Duplicate your source query
2. Filter on one with Exception Type = Daily
3. Apply Remove Duplicates on the table
4. On the other copy of the query, filter out daily
5. Append as New query
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |