Forum Discussion
Amir851
Helper I
7 years agoKeep only First row of a Table
I want to delete all the rows from table except first row.
i.e I want to keep first row in my table and delete all other rows.
Is there is any way to do this
You can do that in Power Query. Home | Keep Rows | Keep Top Rows.
2 Replies
- Greg_Deckler
Community Champion
You can do that in Power Query. Home | Keep Rows | Keep Top Rows.
- JPBTech19Frequent Visitor
Click EDIT QUERIES....
Once in the Power Query Editor, select the table you want to limit the number of rows being returned.
On the ribbon, look for KEEP ROWS.
Here is a good reference: https://www.c-sharpcorner.com/article/variable-in-dax-keep-rows-and-remove-rows-in-power-bi/