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
gdecome
Helper III
Helper III

Getting values and filtering a virtual table

Hi all, I need to create a table inside the measure (not as another table) and get values from there. 

If I run as below, it works fine

 

gdecome_1-1616620764377.png

 

I see the table is Ok

gdecome_2-1616620818877.png

 

How to write an expression that works for specific columns? 

For example:

MAX(_index[Value2) ... that will return 3.1  ... or
FILTER(_index,[Value1] = 2 ... to select that specifc row

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gdecome , You can try like

MAXX(_index,_index[Value2]))

 

MAXX(filter(_index,_index[Value2] =2),_index[Value3])

 

You have use functions which take table name as one of the argument

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@gdecome , You can try like

MAXX(_index,_index[Value2]))

 

MAXX(filter(_index,_index[Value2] =2),_index[Value3])

 

You have use functions which take table name as one of the argument

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak but it is not working yet. It is not recognizing the table

 

gdecome_0-1616672162290.png

 

Hi @amitchandak , I could solve the problem removing the table name before the column name.

MAXX ( _index , [Value2] )
Thank you for your help 

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.