cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PoweBI Member
Member

Re: Lookup with if Condition

Hi AIB,

Thank you so much for your help.

<AIB>But I'm not sure that's the best option because, how will you tell if the average was actually a zero or the name wasn't present in the other table? I would stick with the blank as we had in the first version 

 

I have used 00000 and it is my indicator to use in with other calculated column and when end user see 00000 they understand there has no AVG available for the product.

Super User
Super User

Re: Lookup with if Condition

@PoweBI

How have you used 00000?

 

PoweBI Member
Member

Re: Lookup with if Condition

Hi AIB,

calculated column=if (column =00000,"y","n").Once i get "y" and "n" i am will use this for next calculation.

let me know if you need more inforamation.

thanks

 

Highlighted
Super User
Super User

Re: Lookup with if Condition

@PoweBI

Ok, but 00000 as a number is still  and exactly the same as 0. It will be shown as 0, your users will see 0, not 00000

If you did the following, you will have simple zeros in your column. Don't you?

 

NewAvgColumn =
VAR _LookedUpAvg =
    LOOKUPVALUE ( Sheet2[Avg], Sheet2[Product Name], MainTable[Product] )
RETURN
    IF ( NOT ISBLANK ( _LookedUpAvg ), _LookedUpAvg, 00000 )

 

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (1,292)