Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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 MaxDate

    Is this something that would fulfil your request?

15 Replies

  • Hi, Anonymous,
    it's possible to filter in visual using TOPN, see pictures:

     

     

    • Anonymous's avatar
      Anonymous
      Not 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's avatar
        vojtechsima
        Icon for Super User rankSuper User

        Hi, Anonymous 

        Latest_Date = 
        var MaxDate = CALCULATE(MAXX(Users,Users[Date]),
        ALLEXCEPT(Users,Users[USER-ID]))
        return MaxDate

        Is this something that would fulfil your request?

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity 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])

     

    • Anonymous's avatar
      Anonymous
      Not 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.