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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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