Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I know I can access access data in a table as follow ...Table[column]{#}
where # is any number but just one. is there any way to include two columns or to enter to numbers of rows? something like table[[column1,column2]]{0,1,2}
I know that is not gonna work but I hope you get what I am trying to do and show me a way out
Thnkas!
Solved! Go to Solution.
Hi @Anonymous ,
You could add an index column to filter rows. And use "Choose column" feature to filter columns or go to the specific column.
Hi @Anonymous ,
You could add an index column to filter rows. And use "Choose column" feature to filter columns or go to the specific column.
Hi, @Anonymous , access to a specific column/row/cell is really a pain in the axx compared with Excel; sometimes it could be as verbose as such, (supposing we need "Column1", "Column2" from table)
Table.SelectColumns(table, List.Select(Table.ColumnNames(table), each Text.End(_, 1) <= "2"))
Annoying as it is, it provides some flexibilies and code robust in the meantime.
M language would be more fun if only MS provided a full, more delicated set of documentation!
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@Anonymous
Say your table looks like:
You insert a step as
= Table.FirstN(Table.SelectColumns(Source, {"Column1", "Column2"}),3)
Full Code which you can paste in a blank query:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("NY3LFcAgCAR74ewh+MFQi8/+2wgj5uA+3GHZtaRLEa0h8w1xZFTZZYmDXEMqXB8mPWjiGoY2og7yTN35P3i+SQjx+qDEWLEkx2CbymbZtvcH", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t, Column5 = _t]),
Custom1 = Table.FirstN(Table.SelectColumns(Source, {"Column1", "Column2"}),3)
in
Custom1
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the April 2026 Power BI update to learn about new features.
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 |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |