This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
My table is like this
I want to filter the table by the highest [ Rec] value as follows
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, you can create a measure as follows.
Measure =
var x1=MAXX(FILTER(ALL('Table'),[Custld]=SELECTEDVALUE('Table'[Custld])),[Rec])
return
IF(MAX('Table'[Rec])=x1,1,0)
Then you can drag it to the filter of the table visual you created and select "value=1".
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Do you want the result using the Query Editor or using measures in a visual?
Hi @Anonymous ,
Based on your description, you can create a measure as follows.
Measure =
var x1=MAXX(FILTER(ALL('Table'),[Custld]=SELECTEDVALUE('Table'[Custld])),[Rec])
return
IF(MAX('Table'[Rec])=x1,1,0)
Then you can drag it to the filter of the table visual you created and select "value=1".
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
Sorry, I'm cannot see the criteria by which the values are filtered. Can you explain further please?
Proud to be a Super User!
Paul on Linkedin.
It should be based on "Rec" column. For an example, customerId 789 has four rows of data, among them I want to get the highest "Rec" number containing row which is number 4.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 40 | |
| 21 | |
| 19 |