Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
"I have 2 tables (A,B) that are Many to One related . I created a key id in each table to enable the relationship. That key is a concatenated function of a date and a name. e.g. :"Buildingname10/21/2019"
In the main table that I'm working (A), I tried to used a LookUpValue formula to get some specific data from the table B. I got the error: A table of multiple values was supplied where a single value was expected.
That same formula worked in another column of A to get data from a table C. Table A and C are one to one related.
Using the RELATED function to try to get the data from column B doesn't work either. The columns of B are not shown in the formula. I also created a fourth table (D) using FILTER and CALCULATE TABLE, with a many to one relation to A. The methods explained before didn´t work either.
Any ideas to solve this issue?
Solved! Go to Solution.
Hi,
wow, i can see a lot of effort esp on all the building keys.
There is few slight considerations to take note of:
1. your table2rev.building key is not unique. from what i see you want to get your type 1 value, those are repeated with same values because of column dif.
2. The measure you are using :
(note that i assume there is no difference in your type values whichever the dif values are)
i attached the ammended pbix file:
The above should ans to your question on why the lookupvalue do not work.
On a side note, though i yet to understand what your overall intention is. My opinion is your current model could be, imho, very difficult to maintain. For a neater solution one could consider to have a seperate distinct Building Table, calendar table and using calculate and dateadd to compare last year date and get values of type 1,2,3 etc. however this would be a seperate long conceptual qns.
meanwhile i hope it clear up the lookupvalue doubts you have.
regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |