DAX expression error in PowerPivot?

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

DAX expression error in PowerPivot?

Post by Rudi »

Hi all,

I have searched high and low for an answer on the web (and have learned a lot in searching), but I still cannot figure out why this simple expression is not calculating? Since the syntax of my expression is correct, all i can deduce is that the relationship is problematic, but if I check relationships on the design tab, it exists and is fine??

Any advice will be highly appreciated. TX
Dax Error.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78548
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DAX expression error in PowerPivot?

Post by HansV »

I don't know if there is anyone here who uses PowerPivot (apart from you, obviously)...
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: DAX expression error in PowerPivot?

Post by Rudi »

I predict that in the next 6 months we will need to create a new board for this Excel add-on. I am sure that when it becomes more popular, there will be a host of questions and posts for this.

I guess I'll have to continue searching. Many TX

PS: I have not been around lately, but are we missing a link on the portal for unanswered posts? I am sure there was a link to show all posts without replies yet. Where has that gone?
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78548
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DAX expression error in PowerPivot?

Post by HansV »

It seems to have disappeared, probably when we upgraded to a new version of phpBB. I'll add it back later today.
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: DAX expression error in PowerPivot?

Post by Rudi »

That would be great. TX
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
rory
5StarLounger
Posts: 817
Joined: 24 Jan 2010, 15:56

Re: DAX expression error in PowerPivot?

Post by rory »

What's the relationship? It looks to me as though you might be on the wrong end of a one to many relationship (presumably your product could be involved in many orders).
Regards,
Rory

User avatar
HansV
Administrator
Posts: 78548
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: DAX expression error in PowerPivot?

Post by HansV »

Rudi wrote:...are we missing a link on the portal for unanswered posts?
It had only disappeared from the prosilver skin, it's back now. The other skins were not affected.
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: DAX expression error in PowerPivot?

Post by Rudi »

Woah... This is new and weird??

It seems you need to be on the many's side of the relationship for the formula to work!! :hairout:

This was never an issue in Access Queries... So I guess i'll have to be a little more vigilant about this. TX Rory....I was literally pulling my hair out with this irritation.
Dax Error.jpg
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: DAX expression error in PowerPivot?

Post by Rudi »

HansV wrote:
Rudi wrote:...are we missing a link on the portal for unanswered posts?
It had only disappeared from the prosilver skin, it's back now. The other skins were not affected.
TX Hans...I like this link...hence spotting it was missing! :clapping:
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
rory
5StarLounger
Posts: 817
Joined: 24 Jan 2010, 15:56

Re: DAX expression error in PowerPivot?

Post by rory »

It would be a similar situation in Access.
If you think about it it is quite logical - after all, in the context of the row on your first example, which of the many related order quantity items for that product should it return?
Regards,
Rory

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: DAX expression error in PowerPivot?

Post by Rudi »

You are right. My reference to Access queries is in the context of a new query where one creates a new data table based on two related tables. The expression in the third table can be anything...no order or logic required based on the relationship direction. In PowerPivot there is no third table...so it is very relevant here.

Thanks a stack for your logical solution. :)
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.