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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.