Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |