Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Join two Excel tables using Power Query Formula Language (M) or Power Pivot (DAX)

$
0
0

Hi everyone,

I have two tables in excel - one with date ranges (Period begin Date - Period End Date):

Image

and the other one is simple DimDate on day level of granularity (01-JAN-2010, 02-JAN-2010, etc.)

What I want to achieve is to create either M or DAX script to join these two tables to get following result:

Image

SQL query should look like this:

SELECT T.[Transaction Date], D.[Date] as [Period Date]
FROM Transactions T
INNER JOIN DimDate D ON D.Date BETWEEN T.[Period Begin Date] AND T.[Period End Date]

Is something similar possible in M / DAX?

Thanks,


Viewing all articles
Browse latest Browse all 11829

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>