Forum Discussion

Jayshamone's avatar
Jayshamone
Helper I
6 years ago
Solved

DAX Article Distribution

Hello,

I am trying to calculate the distribution of articles (or article groups) in a dynamic timespan.

Currently I am using a DAX Statement which underperforms massively with a large number of articles or dates:

Calculate(distinctount('Dim Shops'[Shop]); filter('Fakt Transactions'; 'Fact Transactions'[Amount] > 0))

The statement returns the correct value, however the runtime can easily exceed 1 Minute or more.
Does anybody have an idea how to boost performance on such statements?

Thank you
Justus

  • Thanks for your help.
    However, I found a formula that calculates the correct result in far less time.
    It goes like this:

    CALCULATE (DISTINCTCOUNT('Dim Shops'[Shop]); VALUES([Fact Transactions]))

5 Replies