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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Count Number of rows in another table filtered by current column.

Hello, I do have 2 tables :

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.

 

2 REPLIES 2
water-guy-5
Helper III
Helper III

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. 

Anonymous
Not applicable

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 :

RomainK_SoSP_1-1643748407694.png

And Here an extract of the Log Table :

RomainK_SoSP_0-1643748376779.png

 I Hope i made my request more understandable.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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