Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Retrieving a row value from a dynamic table and displaying it on a card.

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?

 

PhyllisNwad_1-1596783743791.png

 

Any suggestions?

 

Thank you in advance.

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

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")

rb.png1.png

 

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.

View solution in original post

3 REPLIES 3
v-yingjl
Community Support
Community Support

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")

rb.png1.png

 

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.

amitchandak
Super User
Super User

@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.

Anonymous
Not applicable

Hi @amitchandak 

Thank you for checking my question. I have modified it. Please have a look.

Thanks again.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.