Dax-formula:Show how many people has called more than once in the last 14 days

Caze982

Board Regular
Joined
May 10, 2015
Messages
77
Hi everyone

I have two columns one where i have phone numbers and one where i have dates. I would like to write a DAX-formula thats shows how many people in the last 14 days have called more than once. Does anyone know how to do that?

Sincerly
Christian
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Add a calculated column:
Count of Calls =
VAR __CurrentRowID = Table1[Phone number]
RETURN
COUNTROWS(
FILTER(
ALL(Table1);
__CurrentRowID = Table1[Phone number]
)
)

Add a measure:
Calls=
CALCULATE(
DISTINCTCOUNT(
Table1[Phone number]
);
FILTER(
Table1;
Table1[Date]>=TODAY()-14 && Table1[Count of Calls]>1
)
)
 
Upvote 0
Add a calculated column:
Count of Calls =
VAR __CurrentRowID = Table1[Phone number]
RETURN
COUNTROWS(
FILTER(
ALL(Table1);
__CurrentRowID = Table1[Phone number]
)
)

Add a measure:
Calls=
CALCULATE(
DISTINCTCOUNT(
Table1[Phone number]
);
FILTER(
Table1;
Table1[Date]>=TODAY()-14 && Table1[Count of Calls]>1
)
)
Thank you very much for your answer. Have a nice day :)
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top