Forum Discussion

NickCC's avatar
NickCC
Frequent Visitor
2 years ago
Solved

Help: How to simple use a filter in DAX

Hello,    I am having an issue with a simple filter for a new measure.  Following settup:  In the measure Attribute Name different text values like Brand, Gendre etc. are included Hereby the Att...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi  NickCC ,

    I created some data:

    Do you want to use Dax to achieve the following effects:

    Here are the steps you can follow:

    If [Attribute Value] is not a duplicate value in your data, you can try the following dax:

    no - repetitive =
    MAXX(
        FILTER(ALL('Table'),[AttributeName]="Marke"&&'Table'[Attribute Value]=MAX('Table'[Attribute Value])),[Attribute Value])

    If your [Attribute Value] is a duplicate value, you can create an index to mark it.

    Add Column – Index Column – From 1.

    repetitive =
    MAXX(
        FILTER(ALL('Table'),[AttributeName]="Marke"&&'Table'[Index]=MAX('Table'[Index])),[Attribute Value])

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly