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

Caze982

Board Regular
Joined
May 10, 2015
Messages
71
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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

mart37

Well-known Member
Joined
Aug 4, 2017
Messages
1,096
Office Version
  1. 2016
Platform
  1. Windows
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
)
)
 

Caze982

Board Regular
Joined
May 10, 2015
Messages
71
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 :)
 

Forum statistics

Threads
1,141,715
Messages
5,708,052
Members
421,541
Latest member
Akidev

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
Top