DAX Count if Help

Barto

Board Regular
Joined
Jul 30, 2013
Messages
78
Hi I have tried many calculate / count functions and cannot get them to work so thought I'd ask here.

I have 3 data tables

Table 1 is called "ExitData" has survey results from people who have resigned. There is a "survey completed date" column here
Table 2 is called "common vwDimEmployee" and has a date listing all the people who have resigned. There is a resignation data column here
Table 3 is called "common vwDimDate" and just has dates listed 1/1/15 to now (plus other columns with month year etc)

I have created a one to many relationship between table 1 survey dates (many) and table 3 date (one)
Also created relationship between table 2 resignation date (many) and table 3 date (one)

I'm trying to calculate a survey completion percentage by dividing the number of surveys complete by the number of people who resigned.

To do this i need 2 countif calculation
first one counting the surveys if the survey date in table 1 matches the date in table 3
second count being the count if resignation date in table 2 matches the date in table 3

Then I'm hoping to chart the survey completion % by "month" using table 3 as the data values and the table 3 "month" field in the axis of the chart.

I have tried various "calculate/countrows/filter" formulas and they are not working For example this formula give no result

Survey Completed = CALCULATE(COUNTROWS('Exitdata'),FILTER('Exitdata','Exitdata'[Survey Completed Date] = firstdate('common vwDimDate'[Date]))

If i can get the counts to work then I should have no trouble getting the completion percentage to work cause its one count divided by the other count.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,122
Messages
6,176,502
Members
452,733
Latest member
Gao87

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