Forum Discussion
Pulling distinct Value based on Matching Condition
Anonymous - Well, there is LOOKUPVALUE or MAXX(FILTER(...)...). Might have to use DISTINCT but way to vague of a question to answer with any certainty.
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
Greg_Deckler thanks for the response
I want to pick unique user name where date = 'latest'
The table has a username column and date columns which has old and latest values .I want to unique from the columns where date is latest .
- amitchandak6 years ago
Super User
Anonymous ,
lastestnonblankvalue(Table[date],max(Table[UseNAme]))
Refer
https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak
- Anonymous6 years agoNot applicable
amitchandak will this be creating a new table ? I have pasted the sample data on the previous comments and the desired output.
Please suggest
- Greg_Deckler6 years ago
Community Champion
Anonymous - I *think* you want:
New Table = DISTINCT( SELECTCOLUMNS( FILTER('Table',[Latest_VM]="Latest"), "VM Name",[VM Name] ) )