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

MDX no transaction in the last 2 years

$
0
0

Hi

What I'm trying to do is a set, which retuns me only the items that don't have transaction over the last 2 years.

My Data is as follows:

- there's a measure called TransactionCount

- an ItemDimension and a TimeDimension

So I need all Items that have 0 or Null TransactionCount over the last 2 years

What I have so fat is this:

SELECT

([Measures].[TransactionCount],PERIODSTODATE([Date].[YEAR].[(ALL)],[Date].[YEAR].&[2013].LAG(2)))on 0,


FILTER

([Items].[Items].MEMBERS,

[Measures].[TransactionCount]<1)

on 1


from

InventoryAudit

this returns me only those that don't have a transaction at all. There are some, that didn't have any over the last two years, but earlyer.

Thank you for any help

Lukas


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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