Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

"Between Dates" dimension... Calculate Debts/Inventory ON A CERTAIN DATE in history...

$
0
0

Hello,

My Fact table contains Invoice_ID, Invoice_Date, Invoice_Amount, Due_Date, Payment_Date, etc...

I would like to see the Debts Amount (all the invoices that were paid after due date) during some (any) period of time...

To see that, I need to check that the Requested_Date (could be any date) is BETWEEN Due Date and Payment Date (Due_Date<Requested_Date<Payment_Date). So my Dates Dimension cannot be connected to any date FKs...

I need a calculated measure that would check for every current member on the RequestedDateDim - if its BETWEEN Due Date and Payment Date.

I did managed to solve this in Tabular (thanks to Gerhard Brueckl), but the Performance sucks BIG TIME...

(see this post: http://gbrueckl.wordpress.com/2012/02/16/handling-scd2-dimensions-and-facts-with-powerpivot/)

Is there an efficient way to do it in SSAS?

Any thoughts would be much appreciated!

Thanks in advance,

Michael Shparber


Michael


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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