Forum Discussion
Not showing duplicates in visual
Hello everyone,
Maybe someone can help me with this problem.
I created a PieChart based on my dataset. The visual displays results of testcases with repect to a softwareversion. So some testcases will have multiple results depending on the amount of softwareversions. That is good and I need that for my whole report. So it makes no sense to create an extra column to find latest result.
Because for one visual I need to show only the latest result for one testcase I need a measure to filter out the latest.
Any ideas how that measure could look or if there is another way to do that on the visaual level only?
Thanks
Hi, Anonymous
Latest_Date = var MaxDate = CALCULATE(MAXX(Users,Users[Date]), ALLEXCEPT(Users,Users[USER-ID])) return MaxDateIs this something that would fulfil your request?
15 Replies
- vojtechsima
Super User
Hi, Anonymous,
it's possible to filter in visual using TOPN, see pictures:- AnonymousNot applicable
Hi, vojtechsima
This is not really what I am looking for. In your example the name or email is equivalent to my testcase. I need the last result for every name(testcase) and not the latest in total. So in you example if there would be a name more than once, than only show the one thats latest. But thanks for your effort.
- vojtechsima
Super User
Hi, Anonymous
Latest_Date = var MaxDate = CALCULATE(MAXX(Users,Users[Date]), ALLEXCEPT(Users,Users[USER-ID])) return MaxDateIs this something that would fulfil your request?
- Greg_Deckler
Community Champion
Anonymous That seems like a Lookup Min/Max situation:
Measure Lookup Max Simple = VAR __Table = 'Table3' VAR __Max = MAXX(__Table,[Column1]) RETURN MAXX(FILTER(__Table,[Column1] = __Max),[Column])- AnonymousNot applicable
Hi Greg_Deckler ,
thanks for your idea, but it doesnt seem to work the way I need it to. Lets say I have two results of testcases with same ID but on different versions. I need the measure to filter out the one thats older. I tried your approach and its just showing the date of the result in the table instead of removing it. i had the ideo to assign 1s and 0s to it and than filter after 1s for the latest but dont really know how to do this with a measure.
- Greg_Deckler
Community Champion
Anonymous Hard to be specific without sample data and expected output. Sorry, having trouble following, can you post sample data as text and expected output?
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.