Forum Discussion
Table row count
Hi all,
I created a table through Power Query to calculate some data.
I added a new column named Number of Open Problems and added the following M Formula, to calculate the number of rows in another table:
Table.RowCount([Problems])But when I show the result, I got nothing:
By the way, the Table where I want to add this column is not related to the table named Problems (no relationship).
5 Replies
- parry2kSuper User
medlalami I think it should be
Table.RowCount(Problems)✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- medlalamiHelper I
Same issue. No result displayed.
- parry2kSuper User
medlalami I just tested on one of my files and it works. Do you have # of rows in the Problems table? Here is what I tested:
Table.AddColumn(#"Changed Type", "PCA Rows", each Table.RowCount(PCA))✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- medlalamiHelper I
Can you share with me an example?
- parry2kSuper User
medlalami look at EstDate table which has a column called PVA .
✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡