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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
kroman
Helper II
Helper II

Power Query - add column that counts rows from other table

Hi All

I have 2 tables: AllFiles (Url (unique) )  and  FilesAccessed (Urls, AccessDate)
I need to add custom column to AllFiles that would show how many times particular file was accessed. So something like         "Table.AddColumn(#"Removed Columns", "TotalAccessed",
       each Table.RowCount(Table.SelectRows(FilesAccessed, each [Urls] = [Url] ))) " 

But getting error on it. 
Can anybody show me how it shouhld be done?

Thanks

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @kroman ,

 

According to your description, refer to the following steps:

vhenrykmstf_0-1634721467542.png

vhenrykmstf_1-1634721497494.png

vhenrykmstf_2-1634721516875.png

vhenrykmstf_3-1634721527056.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @kroman ,

 

According to your description, refer to the following steps:

vhenrykmstf_0-1634721467542.png

vhenrykmstf_1-1634721497494.png

vhenrykmstf_2-1634721516875.png

vhenrykmstf_3-1634721527056.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@kroman , do the merge operation and the expand take count of URL column only

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry, I am still quite new to Powr BI - can you give more details please

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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