cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
RoelWouters12
Frequent Visitor

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:

I need to create a Calculations using DAX  measure based on rows in a column, in the explanation video from davidson university it works straight away but when I put it in it states table not found. 

formula:

GDP = CALCULATE(SUM(indicators[Value]), ( indicators[Indicator Code]) = 'NY.GDP.MKTP.CD')
 
Any one that has some advice?

 

 

 

1 ACCEPTED SOLUTION
MAwwad
Super User
Super User

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 🙂

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

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.

RoelWouters12
Frequent Visitor

Thanks a lot, dumb mistake! I will blame it on wathcing too much to the screen

MAwwad
Super User
Super User

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 🙂

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors