Forum Discussion
LeighMacKay
Helper I
7 years agoCreate a count measure which work with filters
Hi All, Can anybody advise how I create a measure which counts a date & time field? If the date and time field does't exist (NULL) then don't count it. If the Date & Time field has any entry, ...
- 7 years ago
Hi LeighMacKay ,
It does work with filters. If you want to remove the impact of filters, you can use ALL in the formula like below.
Measure = calculate(count('table'[DateField]), all('table'[field]))Best Regards,
v-jiascu-msft
Microsoft Employee
7 years ago- LeighMacKay7 years ago
Helper I
Hi,
The solution that you have responded with works. But not in the nature which I require.
It doesn't work with the filter, but the total only at all times.
- v-jiascu-msft7 years ago
Microsoft Employee
Hi LeighMacKay ,
It does work with filters. If you want to remove the impact of filters, you can use ALL in the formula like below.
Measure = calculate(count('table'[DateField]), all('table'[field]))Best Regards,
- LeighMacKay7 years ago
Helper I
This now works. Great stuff and thank you for your help