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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.