Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All
This is my current DAX:
Selected Stock Symbol =
LOOKUPVALUE(
DimCompanies[Symbol],
DimCompanies[Companyname],
[Selected Stock]
)
The problem is that the Companyname is not unique.
So in the instance of 'Alphabet Inc.' my DAX returns a blank as there are multiple values (GOOGL and GOOG).
In this instance I want to return the first value it finds but am stuggleing with the code. I have tried using a combination of Firstnonblank and Filter but am still stuck.
Any help would be great.
Andrew
Solved! Go to Solution.
@andrew_k Use MINX( FILTER( ... ), ... ) instead of LOOKUPVALUE.
@andrew_k Use MINX( FILTER( ... ), ... ) instead of LOOKUPVALUE.
Excellent. Thanks Greg!
MINX( FILTER(DimCompanies, [Companyname] = [Selected Stock]),[Symbol])