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.
Hi
I had gotten answers to this question when the data contents in table were static. Now we have data added to this table daily as a result to retrieve a row value using a LOOKUPVALUE formula with a fixed index (similar to the one below,) is problematic.
Measure = LOOKUPVALUE('Table'[B],'Table'[Index],94)
Take for instance in the table provided in the screenshot below; the current row number for "Number of interventi " is 94 . I had used the formula: measure = lookupvalue ('Table' [B], 'Table'[Index], indexnumber) that is LOOKUPVALUE('Table'[B],'Table'[Index],94). However after new entries got added to the table, the row number for "Number for Interventi" changed to 100. This meant that the measure formula had to be manually changed to LOOKUPVALUE('Table'[B],'Table'[Index],100).
I would like to have a better way of retrieving the values for Number of interventi without having to manually change the formula everytime the data is added to the table.
The question is what formula can be used to retrieve the value of "Number of interventi" under Column B - when more data is added to the table and the index for Number of Interventions keeps changing?
Any suggestions?
Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous ,
When using LOOKUPVALUE() function, the return value should be the value in the column B, search column name should be your [Name] column not index column, and the search value should be the specific name not index value:
Measure = LOOKUPVALUE('Table'[value],'Table'[Name],"Number of interventi")
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
When using LOOKUPVALUE() function, the return value should be the value in the column B, search column name should be your [Name] column not index column, and the search value should be the specific name not index value:
Measure = LOOKUPVALUE('Table'[value],'Table'[Name],"Number of interventi")
Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.
Hi @amitchandak
Thank you for checking my question. I have modified it. Please have a look.
Thanks again.
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |