Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Multiple measures based on multiple date columns

$
0
0

How should I model this in Power BI? I need 4 measures that are dependent on different date columns. So far I have loaded the data into 4 different fact tables, which duplicates the dimension data, and then joined the dates to a date dimension. Then I have to create dimension tables by geting a distinct list of each of the dimension columns and join to each of the fact tables.

So my measures are now of this format. Total1 = CALCULATE(sum(Table1[No. of Items]),Table1[Date1])

Is there a way to create a DAX formula to create the measure and allow me join to the Date Dimension or do month filtering? Or is the answer to unpivot the data? My issues is the duplication of the dimension data.

 

Sample Data.PNG

 

Date dimension on the left, fact tables in the middle, dimension tables on the right.

Data Model.PNG


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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