The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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)