Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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])
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |