cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ksagert Frequent Visitor
Frequent Visitor

Partial values being returned on lookup

Running into a strange scenario when I'm trying to pull values into a calculated column from another table. It seems to work fine... but not all the time and a number of values are missing although some appear correct without issue. 

 

I'm currently using the formula:

Est. POS Cost = IF(ISBLANK('POS Sales Data_Basic'[POS Event Code]),BLANK(),
CALCULATE (
    FIRSTNONBLANK ( 'POS Flyer Event Costs'[Promo Price], 0 ),
    FILTER ( ALL ( 'POS Flyer Event Costs' ), 'POS Sales Data_Basic'[Item Number] = 'POS Flyer Event Costs'[Item Number] && 'POS Sales Data_Basic'[POS Event Code] = 'POS Flyer Event Costs'[POS Event Code])
))

As you can see in my table I'm using this formula in to retrieve from 'POS Flyer Event Costs', it retrieves the correct value of $6.65 only once and leaves blank all the other rows where I would expect to see it as well. 

 

A Snapshot of my tables:

 

 POS Sales Data_Basic

1.png

 

 

POS Flyer Event Costs

2.png

 

 

Thoughts? Thanks in advance. 

 

EDIT: I think something went wrong with the screenshots, just updated them. 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Partial values being returned on lookup

Hi @ksagert,

 

It seems that you have two tables, have you created the relationshio between the two tables? If it is, please share a screenshot about the relationship.

 

By my tests based your information, I could get your desired output.

Untitled.png

 

In addition, please share your two tables as table format so that I can copy and test so that we could get the solution faster.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: Partial values being returned on lookup

Hi @ksagert,

 

Have you solved your problem?

 

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please share your data sample which could reproduce your scenario so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 161 members 2,127 guests
Please welcome our newest community members: