Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
Is there a way to return in a table the number of rows of each queries ?
I want to have the result displays in the pane in a single report.
Is it possible ?
Number of rows for each query
Ok, I can create a group by query for each query but it's a waste of time.
Solved! Go to Solution.
you can do it with #shared, you will just have to filter your queries in #"Filtered Rows"
let
Source = #shared,
#"Converted to Table" = Record.ToTable(Source),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "D35" or [Name] = "D39")),
#"Added Custom" = Table.AddColumn(#"Filtered Rows", "NrOfRows", each Table.RowCount([Value])),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Name", "NrOfRows"})
in
#"Removed Other Columns"
you can do it with #shared, you will just have to filter your queries in #"Filtered Rows"
let
Source = #shared,
#"Converted to Table" = Record.ToTable(Source),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "D35" or [Name] = "D39")),
#"Added Custom" = Table.AddColumn(#"Filtered Rows", "NrOfRows", each Table.RowCount([Value])),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Name", "NrOfRows"})
in
#"Removed Other Columns"
Thanks @Stachu
I knew #shared to display all the functions but I didn't know this function display also the current queries.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.