Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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])
User | Count |
---|---|
20 | |
18 | |
17 | |
11 | |
7 |
User | Count |
---|---|
28 | |
27 | |
13 | |
12 | |
12 |