Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello all,
I have a table of data recording when someone last had a performance review. My date parameters are the last rolling 12 months. Unfortunatey the review doesn't always get done on the due date and so sometimes I end up with 2 review dates taking place in the same 12 month period. For example:
I would like to remove the dulicates, making sure that the most recent PDR complete date remains.
Is there an easy way to do this?
I'm still new to Power BI so i'm not familiar with all the terminology so thank you and sorry in advance if I ask lots of follow up questions.
Many thanks,
Emily.
Solved! Go to Solution.
@EmilyM2019 , refer if this can help
https://www.youtube.com/watch?v=rqDdnNxSgHQ
Hi @EmilyM2019 ,
Some workarounds for reference:
1. You can remove duplicate by using Group by in Power BI Query Editor.
Set it up just like the settings in the picture.
Then, create a custom column.
=let mydate = [PDR complete date] in
Table.SelectRows([All Rows],each[PDR complete date] = mydate)
Then, expand the columns you need and delete the All Rows column.
Duplicates are removed and the most recent PDR complete date remains.
2. You can also use Group by as follows.
The result is as follows.
3. You can as well use Group by as follows.
Then you expand the columns you need and remove the duplicates.
4. You can try this measure which use LOOKUPVALUE function.
Measure =
LOOKUPVALUE (
'Table'[PDR complete date],
'Table'[PDR complete date], CALCULATE (
MAX ( 'Table'[PDR complete date] ),
ALLEXCEPT ( 'Table', 'Table'[Name] )
)
)
You can check more details from here.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@EmilyM2019 , refer if this can help
https://www.youtube.com/watch?v=rqDdnNxSgHQ
Thank you, really helpful.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |