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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SIBI1998
Helper I
Helper I

Required Dax Function

Question : Each client id connected with how many unique Ip address​. 

Screenshot 2023-03-16 172555.png

Result:

Sample dataset:

User Id             ip

821408 103.94.137.249
821408 103.94.137.249
821408 103.94.137.249
821408 103.94.137.249
821408 103.94.137.249
821408 103.94.137.249
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
821450 157.33.36.95
821453 106.215.56.25
821453 106.215.56.25
773567 157.45.112.132
773567 157.45.112.132
821023 49.36.32.161
821023 49.36.32.161
821023 49.36.32.161
821023 49.36.32.161
821023 49.36.32.161
821023 49.36.32.161
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
821444 27.59.159.136
773567 157.45.112.132
773567 157.45.112.132
821453 106.215.56.25
821453 106.215.56.25
821453 106.215.56.25
821023 49.36.32.161
821023 49.36.32.161
821023 49.36.32.161
773567 157.45.112.132
821023 49.36.32.161
773567 157.45.112.132
821408 103.94.137.249
821023 49.36.32.161
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
773567 157.45.112.132
821023 49.36.32.161
821023 49.36.32.161
821408 103.94.137.249
773567 157.45.112.132
821444 27.59.159.136
821453 106.215.56.25
1 ACCEPTED SOLUTION

Hi @SIBI1998 
Please refer to attached sample file with the proposed solution

1.png2.png

Unique IP Filter = 
COUNTROWS (
    CALCULATETABLE ( 
        VALUES ( 'Table'[IP] ),
        ALLEXCEPT ( 'Table', 'Table'[User ID] )
    )

View solution in original post

6 REPLIES 6
tamerj1
Super User
Super User

Hi @SIBI1998 

what about

DISTINCTCOUNT ( 'Table'[IP Address] )

 

Hi @tamerj1 I tried distinct count its not working, not getting appropiate result. 

@SIBI1998 
Please clarify further what result are you getting VS what result are you expecting.

Screenshot 2023-03-17 111357.png

. If im clicking on Slicer user id, then it shows user id with same Ip address And i don't know in which user id have unique Ip address. So for now i have to click randomly in slicer to check the which user-id have unique ip address. 

 

 

 

 

---------------------------------------------------------------------------------

Result:
Screenshot 2023-03-17 111957.pngYou can see here. One user-id having 2 unique ip address. So this Result I want see in my report. Only those user-id having unique ip address. For now it shows all. I tried Distict Count its not working. So expecting some DAX formula to work. 

Hi @SIBI1998 
Please refer to attached sample file with the proposed solution

1.png2.png

Unique IP Filter = 
COUNTROWS (
    CALCULATETABLE ( 
        VALUES ( 'Table'[IP] ),
        ALLEXCEPT ( 'Table', 'Table'[User ID] )
    )

thanks @tamerj1 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors