Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello Guys,
I want to calculate the count of Ip address repeated between the createion date and 90 days ago this creation date
plz help me how to calculate
Ip Creation Date creation date 90 days ago
10.10.122.10 1/1/2021 3/10/2020
12.12.199.10 4/1/2021 6/10/2021
10.10.122.10 1/1/2021 3/10/2021
13.12.12.10 1/1/2021 3/10/2020
result should be
count
1
1
2
1
Thanks
Pra137
Solved! Go to Solution.
Hi @Anonymous
Try this code to create a calculated column.
Count =
CALCULATE (
COUNTROWS ( 'Sample' ),
FILTER (
'Sample',
AND (
'Sample'[Ip] = EARLIER ( 'Sample'[Ip] ),
'Sample'[creation date 90 days ago]
<= EARLIER ( 'Sample'[creation date 90 days ago] )
)
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , a new column
New colume =
var _dt1 = [Creation Date] - 90
var _dt2 = [Creation Date] + 90
return
countx(filter(Table, [Creation Date] >=_dt1 && [Creation Date] <=_dt2), [ip])
It show me the total count of Ip address in column like 1999 for all rows i want to see 1,2,3 count of ip
Hi @Anonymous
Try this code to create a calculated column.
Count =
CALCULATE (
COUNTROWS ( 'Sample' ),
FILTER (
'Sample',
AND (
'Sample'[Ip] = EARLIER ( 'Sample'[Ip] ),
'Sample'[creation date 90 days ago]
<= EARLIER ( 'Sample'[creation date 90 days ago] )
)
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |