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
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.
User | Count |
---|---|
73 | |
70 | |
38 | |
25 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
43 | |
42 |