Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I've tried to create a table with the number of rows of every table in my Power BI report (with some exceptions) using Power Query:
let
#"Section1" = #sections[Section1],
#"TableList" = List.Select(Record.FieldNames(#"Section1"), each not (Text.Contains(_,"Nøgletal:") or Text.Contains(_, "Aktuel rapport") or Text.Contains(_, "Tabeloversigt"))),
#"RowCount" = List.Transform(#"TableList", each Table.RowCount(Expression.Evaluate("#""" &_& """", #shared))),
#"Table" = Table.FromColumns({#"TableList", #"RowCount"}, {"Table Name", "Rows"}),
#"Changed type" = Table.TransformColumnTypes(Table,{{"Table Name", type text}, {"Rows", Int64.Type}})
in
#"Changed type"
It works perfectly fine in the Power Query-editor and is (in this case) looking like this:
But when I try to apply the changes, I get an error per row in the table, and the Rows-column is empty. When I try to see the error in Power Query-editor, the error table is empty:
Any idea what I'm doing wrong?
👀
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
7 | |
6 |