Forum Discussion
Anonymous
3 years agoNot applicable
DAX
Hi, I have been following an online power BI course and all the measure I have used untill now have worked. however the current one won't work and I can not get my head around it. The problem...
- 3 years ago
Hello,
Try this GDP = CALCULATE(SUM(indicators[Value]), ( indicators[Indicator Code]) = "NY.GDP.MKTP.CD")
You must use " and not '
Dont forget to accept this as a solution if it helped 🙂
HotChilli
3 years agoCommunity Champion
You'll probably learn more if you solve this yourself.
Simplify the DAX and test it. Start with SUM(indicators[Value]) .. Just use that as a measure.
It works? Great.
Add a calculate.
Works? Great.
Add the condition.
Maybe it breaks. Dig in at that point. Check syntax, brackets, quotes.
Compare to the code provided by the course.