Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculated colum

Hi all,   I have a question for this DB: https://www.dropbox.com/s/m8hywr41rn6neq8/example.xlsx?dl=0   I wold have a table: - grouped by Rimorchio: a list of all the contents - Grouped by Tras...
  • ryan_mayu's avatar
    6 years ago

    Anonymous 

    Hope I understood your request correctly.

    create a table

    Table = ADDCOLUMNS( SUMMARIZE('Foglio1','Foglio1'[RIMORCHIO],"checkin",CALCULATE(countrows(Foglio1),FILTER('Foglio1',Foglio1[Senza Titolo]="CHECKIN")),"checkout",CALCULATE(countrows(Foglio1),FILTER('Foglio1',Foglio1[Senza Titolo]="CHECKOUT"))),"tot",[checkout]-[checkin])