Forum Discussion
Tableau to DAX help
Hi yohanp17190 ,
Based on the formula, it appears that you are trying to count the number of unique TotalInteractionNumber values for each quarter, where the TotalInteractionNumber is not equal to 'LEAD000001CH000001', the HoldFlag is 1, and the ActiveCampaignFlag is 1 for quarters after '18-Q4', and where the TotalInteractionNumber is not equal to 'LEAD000001CH000001' and the HoldFlag is 1 for quarters before '18-Q4'.
Please have a try.
column=
CALCULATE(
COUNTROWS(
FILTER(
'Table',
'Table'[TotalInteractionNumber] <> "LEAD000001CH000001" &&
'Table'[HoldFlag] = 1 &&
(
'Table'[ActiveCampaignFlag] = 1 &&
'Table'[Quarter] >= "18-Q4" ||
'Table'[Quarter] < "18-Q4"
)
)
),
ALL('Table'[Quarter])
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.