Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Summaries data in a table based on specific "string value in a column"

Hi Experts

 

is it possible to summarise / extract the data from a table for instances where we have cancellation in column B and the start date is the same as the end date in the respective columns.

see example so i only want to show row 2 in a new table

 

IDTransaction TypeStart DateEnd Adte
1Good01/01/202030/03/2020
2Cancellation03/03/202003/03/2020
3ok02/02/202030/03/2020
4Poor12/01/202031/01/2020
  • Hi Anonymous ,

     

    Try this to create a new table:

     

    T_Cancellation = FILTER('Table (2)'; 'Table (2)'[Transaction Type] = "Cancellation" && 'Table (2)'[Start Date] = 'Table (2)'[End Adte])
     
    Ricardo

4 Replies

  • camargos88's avatar
    camargos88
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous ,

     

    I didn't get what you want... just filter ?

     

    If you wanna show it using table, try it:

     

    CALCULATE(COUNT('Table'[ID]); FILTER('Table'; 'Table'[Transaction Type] = "Cancellation" && 'Table'[Start Date] = 'Table'[End Adte]))
     
     
    Ricardo
    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Camargos88

       

      i want to show  just the following as a new table (a subset of the larger table)

      IDTransaction TypeStart DateEnd Adte
      2Cancellation03/03/202003/03/2020

       

      • camargos88's avatar
        camargos88
        Icon for Community Champion rankCommunity Champion

        Hi Anonymous ,

         

        Try this to create a new table:

         

        T_Cancellation = FILTER('Table (2)'; 'Table (2)'[Transaction Type] = "Cancellation" && 'Table (2)'[Start Date] = 'Table (2)'[End Adte])
         
        Ricardo