I have 2 sample tables, Table "EX4" and "Dates". Now I want to create a third table in DAX which joins dates with EX4 table.
Now I want to join EX4 table with Dates[Sale_Date] where
Dates[Sale_Date] >= Ex4_Ext[min_date] and Dates[Sale_Date] <= Ex4_Ext[max_Date]
The output should be as follows:
I am using below DAX code and is not giving the correct output because its not doing left join. It is doing Cartesian product.
Ex4_Ext =
var tbl = SELECTCOLUMNS(EX4,"min_date",EX4[Min_Date],"max_Date",EX4[Sale_Date])
var tbl2 = SELECTCOLUMNS(Dates,"sale_date1",date(year(Dates[Sale_Date]),MONTH(Dates[Sale_Date]),Day(Dates[Sale_Date])))
Return
generate(tbl,tbl2)
I Cannot have a relationship between these two tables..Neither Generate all nor Naturalleftjoin is working..
Any help will be appreciated..