Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

single value for repeating values in table

I have a table  ID   Values 1      $ 1      $ 2      % 2      % I want to create a measure to display (Group values based on id) 1    $ 2    %
  • Jihwan_Kim's avatar
    Jihwan_Kim
    5 years ago

    Hi, Anonymous 

    Please try the below.

     

    Amount Total with values =
    VAR grouptable =
    GROUPBY (
    Amount,
    Amount[id],
    "@amounttotal", SUMX ( CURRENTGROUP (), Amount[amount] ),
    "@value", MAXX ( CURRENTGROUP (), Amount[values] )
    )
    RETURN
    CONCATENATEX ( grouptable, [@amounttotal] & [@value] )

     

     

    Hi, My name is Jihwan Kim.

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

    Linkedin: https://www.linkedin.com/in/jihwankim1975/