Forum Discussion
Anonymous
6 years agoNot applicable
TotalCost based on Table or Matrix Value
I have pivot table in excel and I have calculated total cost based on the values of my calculations in the pivot table and I would do samething in excel but I am not sure how, Please below my sample ...
- Anonymous6 years ago
for me to be able to try the formula you supplied, i need to derive number of attendee: i used counifs please sample below
=COUNTIFS(B:B,B2,C:C,C2,A:A,A2),please help with Dax for the countifs
Date Name Status Output 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 11/06/2019 07:00 CAS Enrolled 9 10/06/2019 08:30 PAT Enrolled 6 10/06/2019 08:30 PAT Enrolled 6 PAT Enrolled 0 19/05/2019 23:00 PAT Enrolled 1 10/06/2019 08:30 PAT Enrolled 6 10/06/2019 08:30 PAT Enrolled 6 10/06/2019 08:30 PAT Enrolled 6 10/06/2019 08:30 PAT Cancelled 1 10/06/2019 08:30 PAT Enrolled 6 10/07/2019 23:00 CAS Enrolled 1 10/07/2019 23:00 CAS - CLONED(25/07/2019) Enrolled 2 10/07/2019 23:00 CAS - CLONED(25/07/2019) Enrolled 2 - 6 years ago
Anonymous
6 years agoNot applicable
for me to be able to try the formula you supplied, i need to derive number of attendee: i used counifs please sample below
=COUNTIFS(B:B,B2,C:C,C2,A:A,A2),please help with Dax for the countifs
| Date | Name | Status | Output |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 11/06/2019 07:00 | CAS | Enrolled | 9 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| PAT | Enrolled | 0 | |
| 19/05/2019 23:00 | PAT | Enrolled | 1 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| 10/06/2019 08:30 | PAT | Cancelled | 1 |
| 10/06/2019 08:30 | PAT | Enrolled | 6 |
| 10/07/2019 23:00 | CAS | Enrolled | 1 |
| 10/07/2019 23:00 | CAS - CLONED(25/07/2019) | Enrolled | 2 |
| 10/07/2019 23:00 | CAS - CLONED(25/07/2019) | Enrolled | 2 |
amitchandak
6 years agoSuper User
Anonymous
Try as a new column
Output = countx(filter(Table,Table[Name] =earlier(Table[Name]) && Table[Status] =earlier(Table[Status])),Table[Date])