Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Creating measure by adding column value

  Hi All, I have a dataset with values like below ABCD Theatre 1 100 ABCE Theatre 2 300 ABCE Theatre 4 200 ABCD Theatre 3 150 GABC Theatre 1 120 PLK Theatre 2 100 ABCE Theatre 5 125 Mo...
  • v-qiuyu-msft's avatar
    6 years ago

    Hi Anonymous, 

     

    You can create a measure below: 

     

    Measure = SUMX(FILTER(ALL('Table'),SEARCH("ABC",'Table'[Movie],1,0)>0),'Table'[TicketCharge])
     
     
    Best Regards,
    Qiuyun Yu
  • amitchandak's avatar
    6 years ago

    Anonymous 

    If you need at the start

    MEASURE = SUMX('MOVIETABLE',FILTER('MOVIETABLE',left('MOVIETABLE'['Movie'],3) = "ABC"),TicketCharge)

     

    Anywhere in the string

    MEASURE = SUMX('MOVIETABLE',FILTER('MOVIETABLE',search("ABC",'MOVIETABLE'['Movie'],1,0)>0 ),TicketCharge)

     

  • shameeralikvqa's avatar
    shameeralikvqa
    6 years ago

    SumABC = CALCULATE(SUM('Table'[TicketCharge]),FILTER('Table',FIND("ABC", 'Table'[Movie],,0)<>0))