Problems with a DISTINT COUNT e COUNT measure

  • Hi to all.

    I have an OLAP CUBE that contains a distinct count measure and a count measure ...

    If i do a report with Excel , all it works fine ..and these measure are correctly calculated and displayed.

    If i create a report connected to this OLAP CUBE , i have problems.

    In my tablix repost i have simply :

    DATE DELIVER TOTALE SALES AMOUNT <measure count distinct invoices> <measure count rows>

    12-09-2014 100 (Excel put correct value SSRS no !!!)

    13-09-2014 200 "" ""

    14-09-2014 300 "" ""

    I notice also that in Query Designer <measure count distinct invoices> <measure count rows> are correctly calculated ...

    In my SSRS report measure <measure count distinct invoices> expression is

    =Fields!Numero_Ordini_Clienti.Value

    Do i have use different aggegate functions and if it is...which is correct expression to use ????

    Can anyone explain to me why ???

    Regards in advance...

  • Hi

    Would you try this and see if the result comes back ok?

    =CountDistinct(Fields!Numero_Ordini_Clienti.Value)

    Thanks 🙂

    C

  • I guess SSRS uses SUM or COUNT in the tablix?

    Change this to AGGREGATE. This pushes the logic of aggregating to the cube.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Thanks for your kind reply.

    With your post i solved problem.

    Thanks.

  • Thanks for your kind reply.

    I will try also that you wrote me.

    Thanks again.

  • maretix (10/24/2014)


    Thanks for your kind reply.

    With your post i solved problem.

    Thanks.

    Which one? The CountDistinct or the Aggregate one?

    For the people who stumble upon this thread that might be good to know.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Sorry you are right.

    COUNTDISTINCT solution.

    Thanks again.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply