We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi, I am familiar with Table.LastN and Table.FirstN but I have a scenario where I need to keep the first and last rows of a filtered column.
At the moment I have 2 filter operations that keep first and last rows which I then merge to form my desired table.
Ideally I would do this without the merge and then transpose the table to produce the final outcome.
Please,
make an example of what you desire
Thanks for the reply.
I'll knock something up tomorrow but an example would be if I had 10 rows i would keep rows 1 and 10. If it were 27 it would be rows 1 and 27.
In your query, at the point where you want to extract the first and the last row, steps are:
Thank you.
If my answer helps you, please mark it as solution.
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |