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

 

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

 

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