Forum Discussion
COUNTX(currentgroup( ) with multiple conditions
- 9 years ago
Hi PowerPaddy,
I test TomMartens solution, it works fine, please create the new table using the formula below.PolCount = GROUPBY( PolicyData, PolicyData[Month Written], "Month Written Count", COUNTX(currentgroup(),IF(PolicyData[label]="New",PolicyData[TRANSACTIONCODE],BLANK())))
Please feel free to ask if you still have any other issues. If you have resolved your problem, please mark the right/helpful reply as answer.
Best Regards,
Angelia
Hi PowerPaddy,
I test TomMartens solution, it works fine, please create the new table using the formula below.
PolCount = GROUPBY( PolicyData, PolicyData[Month Written], "Month Written Count", COUNTX(currentgroup(),IF(PolicyData[label]="New",PolicyData[TRANSACTIONCODE],BLANK())))
Please feel free to ask if you still have any other issues. If you have resolved your problem, please mark the right/helpful reply as answer.
Best Regards,
Angelia
- Anonymous7 years agoNot applicable
Hi Angelia,
I know this is an old discussion but I am having issues with GROUPBY and am trying to replicate what you did. Could you walkthrough the logic behind the IF statement ? I understand counting under the condition that [label] = "New" but what does "...PolicyData[TRANSACTIONCODE],BLANK()" do?
Thanks!