Forum Discussion
acg
Resolver I
4 years agoWhere Answer is 'Yes'
I want to calculate the number of Entities that had international Presence (= INT) in the last Year. International Presence is determined by answering to [Question Code] = "Q0035" with [Answer] = "Y...
- Anonymous4 years ago
Hi acg
can you please tryNumber INT Presence YearMax = VAR MAXSD = CALCULATE(MAX('Dim Submission Date'[date]),ALLSELECTED('Dim Submission Date')) VAR MAXYSD = CALCULATE(MAX('Dim Submission Date'[year]),'Dim Submission Date'[date] = MAXSD) RETURN CALCULATE ( COUNT('Fact QNA'[Companies]), 'Fact QNA'[Answer] = "Yes" && 'Dim Questions'[Question Code] = "Q0035", 'Dim Submission Date'[year] = MAXYSD )
v-xiaotang
Community Support
4 years agoHi acg
I just want to confirm have you tried the solution shared by tamerj1 and Aditya_Meshram ? Do they help?
If you still need help, usually information below is needed, could you provide it? Thanks.
(1) a sample file, you can replace raw data with bogus data to protect your privacy.
or provide some sample data that fully covers your issue/question.
(2) give your expected result based on the sample you provide. If calculation formula is involved, please provide it.
Kindly note: Please ensure the data in sample is concise and representative.
Thanks.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.