The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I am new to DAX, teaching myself and having trouble with a basic example using LOOKUPVALUE in Power BI Desktop. I know I'm missing something simple but I can't fathom it out. Any help would be much apprecaited.
I have imported two tables from Excel, People and Counties. The only transformation I've made is to use the first row as column names on both tables which I've then saved and closed in the Transform Data window (Power Query Editor).
I want to setup a measure to retrieve the County from the Counties table based on the person's City in the People Table. To keep things simple I've removed the relationship between the tables:
The People table looks like this:
The Counties table looks like this:
When I try to create a new measure on the People Table to retrieve the County from the Counties table I get several errors.
The first error appears in the formula bar, "Cannot find name '[City]'" and I also get an error about a single value for the column City in the table People:
Thanks!
Solved! Go to Solution.
Hi @DJSAM
You need a calculated column with that same code in the People table NOT a measure
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @DJSAM
You need a calculated column with that same code in the People table NOT a measure
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |