- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Count Number of rows in another table filtered by current column.
Hello, I do have 2 tables :
- A directory table that contains a list of URL (With a URL column) (For instance http://server/Web01, http://server/Web01/Web02, http://server/Web03)
- A Log Table that contains all the requests received by a server. In this table I have a FullUrl column. This column contains the Fully qualified URL to a ressource that belong to a WebSite of my Directory (i.e http://server/Web02/Images.jpg or http://server/Web02/statics/style.css)
I'd like to count for every website the number of request that contains the current Site URL.
I tried to use a measure for that, but it seems that you can't use 2 Datatable in a measure. How can I manage this?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I'm not entriely sure what it is you are asking. If you want to count the number of page visits using the urls supplied in the Log Table, then Power BI can do that quite easily with a number of visuals or a table. If you would like to count the website requests using the directory table url, then you may need to establish a relationship between the two tables.
One possible solution could be duplicating and then shortening the url column in your Log Table. In the Transform Data --> Power Query Editor view, you cansplit a column by a delimiter. In this case, you could do the 4th "/" from the left . From there you could create a relationship between the urls in the respective tables.
Again, not entirely sure what you are trying to do, and supplying pictures would help, but this is the first idea that came to mind. Please respond if you have any questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

The thing is that URL in the log Table does not matfch perfectly with the Directory Table. Since that I can't create a relationship between the to tables.
Here is a snapshot of my directory table where I'd like to add a "Number of request" Column :
And Here an extract of the Log Table :
I Hope i made my request more understandable.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-03-2023 10:56 PM | |||
03-15-2024 07:44 AM | |||
06-10-2024 04:28 AM | |||
Anonymous
| 07-17-2023 01:57 PM | ||
03-04-2024 08:38 AM |
User | Count |
---|---|
134 | |
106 | |
88 | |
55 | |
46 |