Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
carenel
Frequent Visitor

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    
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@carenel , In case you want to merge in power query , you need to first convert this calculated column into power  query

Seem like category max - https://www.youtube.com/watch?v=8KaMj2DFpWg

 

Then you have merge the queries https://radacad.com/append-vs-merge-in-power-bi-and-power-query

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@carenel , In case you want to merge in power query , you need to first convert this calculated column into power  query

Seem like category max - https://www.youtube.com/watch?v=8KaMj2DFpWg

 

Then you have merge the queries https://radacad.com/append-vs-merge-in-power-bi-and-power-query

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"

 

carenel_0-1638447323900.png

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

 

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))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.