Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Good afternoon with everyone I need a help in the query editor of power BI, I am making a connection to a sharepoint folder in which you have several excels with versions I just need to stay with the latest versions in this case the last _rev of each type of excel, some suggestion.
attached image
Solved! Go to Solution.
Hi @Syndicate_Admin ,
If you want to filter the latest version for per date group, you can try the following steps.
1. Add a custom column to get date values.
= Text.Start(Text.Select([Name], {"0".."9"}),4)
2. Filter the rows that contain "_rev" and do not start with "~$" in the Name column.
3. Sort the Name column in descending order.
4. Group based on column DateGroup.
5. Create custom column for adding index to the groups.
= Table.AddIndexColumn([All],"Index",1)
6. Remove all columns except column Data, then extend column Data.
7. Filter rows with [Index] = 1.
8. You will get:
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
If you want to filter the latest version for per date group, you can try the following steps.
1. Add a custom column to get date values.
= Text.Start(Text.Select([Name], {"0".."9"}),4)
2. Filter the rows that contain "_rev" and do not start with "~$" in the Name column.
3. Sort the Name column in descending order.
4. Group based on column DateGroup.
5. Create custom column for adding index to the groups.
= Table.AddIndexColumn([All],"Index",1)
6. Remove all columns except column Data, then extend column Data.
7. Filter rows with [Index] = 1.
8. You will get:
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |