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

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

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.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

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

Thanks again.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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