Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm having a bid of hard time figuring something out. I have a table with rows of customers id's who called to the office. Every customer ID is unique per customer, this data is combined with a date.
I want to create a measure or calculated colmun that counts how many calls are repeated calls within one month without duplication of repeated calls. Is this possible?
For example:
ID | DATE OF CALL | NUMBER of Repeated calls within one month before without duplication: |
1 | 1-1-2022 | 0 |
1 | 30-1-2022 | 1 |
1 | 12-2-2022 | 1 |
2 | 1-1-2022 | 0 |
2 | 15-1-2022 | 0 |
2 | 25-1-2022 | 2 |
3 | 1-1-2022 | 0 |
3 | 1-2-2022 | 0 |
3 | 1-3-2022 | 0 |
Solved! Go to Solution.
@Anonymous , a new column
new column =
var _date = eomonth([DATE OF CALL],0)
var _cnt = countx(filter(Table, [DATE OF CALL] <earlier([DATE OF CALL]) && eomonth([DATE OF CALL],0) = _date && [ID] =earlier([ID])),[ID])
return
if(Isblank(_cnt) ,0,1)
@Anonymous , a new column
new column =
var _date = eomonth([DATE OF CALL],0)
var _cnt = countx(filter(Table, [DATE OF CALL] <earlier([DATE OF CALL]) && eomonth([DATE OF CALL],0) = _date && [ID] =earlier([ID])),[ID])
return
if(Isblank(_cnt) ,0,1)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
21 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |