Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
smpa01
Super User
Super User

SQL Server Management Studio like row count for each var in Power Query

Hi,

 

Is it possible to see the row counts for each steps/variables in Power query like SSMS shows for each query/subquery.

 

If I can see the row count in PQWRY I can easily determine if my subqyery is generating duplicate rows on a join. If I do 50 steps in pqwry and on each step I can see the row counts, I can easily debug my query on that step rather than having to find out the bug after writing 50 lines.

 

I don't know if there is a way to currently do it or else I want to float this idea.

 

Thank you in advance.

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
6 REPLIES 6
v-eachen-msft
Community Support
Community Support

Hi @smpa01 ,

 

You could vote for this similar idea to improve Power BI and make this feature coming sooner. As a limit, 999 is too few.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/35731375-always-show-row-count-at...

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Pragati11
Super User
Super User

Hi @smpa01 ,

 

When you click on a step in Query Editor in Power BI, on bottom left you see number of columns and number of rows on that step.step1.png

 

Is this what you are looking for?

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

yes, I am looking for something like this. But you currently have 20 rows which is why it gives you an excact count. I am working with 40k+ rows, it shows the following

c1.PNG

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi @smpa01 ,

 

Yes I also checked it on another dashboard where I have a million rows. It just shows columns, not rows.

I found a similar thread where there is a workaround on achieving this:

https://community.powerbi.com/t5/Desktop/Row-count-at-each-step-in-Query-Power-BI-Desktop/td-p/19295...

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

@Pragati11 thanks for this, but I do not want to write another query to count the rows. PQWRY has severe performance issues on large tables and I can't imagine running a parrallel query just to catch the row count on each step. Getting row count is great for debugging and if MS can incorporate the excat count (if there is no other way we know of) that in pqwry would be great.

 

Also, running the column profile has severe performancer issues on overall query and I am speaking that from my experience.

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi @smpa01 ,

 

I understand the performance issues on larger tables in Power BI as I myself work on large datasets in Power BI on daily-basis.

Looks like there isn't a way of achieveing this currently in Query editor in Power BI.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.