Forum Discussion

carenel's avatar
carenel
Frequent Visitor
4 years ago
Solved

New table with coincident data.

Hello community,

I have calculated new columns in two different tables.

I need to join both tables in one and just show the rows where the column calculate if is "yes"

How can I do it? because in porwerquery do not show new calculated columns.

 

Many thanks

 

table1    table2 
date 1calculate date 2 Maxcalculate if  date 1oil
01/01/200303/01/2003no  01/01/2003125345
02/01/200303/01/2003no  02/01/20031515
03/01/200303/01/2003yes  03/01/2003155
02/02/200305/02/2003no  02/02/200389582734
03/02/200305/02/2003no   03/02/20037455
04/02/200305/02/2003no  04/02/2003584789
05/02/200305/02/2003yes  05/02/2003543
       
       
       
final table      
calculate ifdate 1oil    
yes03/01/2003155    
yes05/02/2003543    

3 Replies

    • carenel's avatar
      carenel
      Frequent Visitor

      Thank you amitchandak for the links and the reply.

      I think I have a problem with concepts and I used to think like MS Access.

      I have created two calculated columns "ult mes" and "sino"

       

      I have been looking for these calculated columns but query does not show them.

      How can I link the data in table A with Table B but the filter "column sino = 1"

      https://justbeamit.com/dmeq6

      How could I combine?

       

      Many thanks

       

      • carenel's avatar
        carenel
        Frequent Visitor

        Finally, create a new table with the filters and then join the other  tables with RELATED

         

        Tabla =
        filter(cal_mes,
        cal_mes[ult_mes] = 1 &&
        cal_mes[date]> date(2003,9,1))