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
akheel312
New Member

How to count same data and how to find time duration

I have two data sets

data set 1

MAC Address

RSSI

Date_Time (can replace with Time)

 

Dataset 2 (GPS Data)

latitude 

longitude

Time

 

for Data set 1, considering the Mac address as a person or individual, I need to find the Mac Addresses which are repeating and number of times it is repeating. 

 

For Dataset 1, many mac addresses are repeating at different time, I want to calculate the time difference that mac address is spotted for first time and the same mac address that is spotted at last time. 

 

Fot data set 1 and 2, I want to map the coordinates and check the landmarks on the route without zooming to check which area is busy and how many mac address are spotted at that time and at place.

 

I can provide data sets as well. if you are interested. 

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @akheel312 

You may create the time difference measure and use 'count' for time as below.Link the two dataset tables with time column and choose 'count ' for  the mac address.

time difference =
VAR first_time =
    CALCULATE (
        MIN ( 'Dataset 1'[Time] ),
        ALLEXCEPT ( 'Dataset 1', 'Dataset 1'[MAC Address] )
    )
VAR last_time =
    CALCULATE (
        MAX ( 'Dataset 1'[Time] ),
        ALLEXCEPT ( 'Dataset 1', 'Dataset 1'[MAC Address] )
    )
RETURN
    last_time - first_time

1.png

Regards,

Community Support Team _ Cherie Chen
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

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @akheel312 

You may create the time difference measure and use 'count' for time as below.Link the two dataset tables with time column and choose 'count ' for  the mac address.

time difference =
VAR first_time =
    CALCULATE (
        MIN ( 'Dataset 1'[Time] ),
        ALLEXCEPT ( 'Dataset 1', 'Dataset 1'[MAC Address] )
    )
VAR last_time =
    CALCULATE (
        MAX ( 'Dataset 1'[Time] ),
        ALLEXCEPT ( 'Dataset 1', 'Dataset 1'[MAC Address] )
    )
RETURN
    last_time - first_time

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.