Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Help Needed - DAX

Hi All! I am currently encountering a problem with my dax. 

 

Here's the code so far:

 

Contribution to Non-Adoption of Paperless Monthly =
VAR AllTransactions =
    CALCULATE (
        SUM ( 'Total Documents'[AllCount] ),
        NOT ( ISBLANK ( 'Total Documents'[Customer #] ) ),
        FILTER ( 'Total Documents', 'Total Documents'[Customer #] > 50000 ),
        ALLEXCEPT ( 'Total Documents', 'Date Table'[Reporting MonthYear] ),
        ALL ( 'Total Documents'[Paperless Segment] )
    )
VAR NonAdoptedTransactions =
    CALCULATE (
        SUM ( 'Total Documents'[Unenrolled Document] ),
        NOT ( ISBLANK ( 'Total Documents'[Customer #] ) ),
        FILTER ( 'Total Documents', 'Total Documents'[Customer #] > 50000 )
    )
RETURN
    AllTransactions
//divide(NonAdoptedTransactions,AllTransactions)

 

I'm currently trying to return the 'AllTransactions' in this visual.

 

 

Ideally, I would want all rows to return 10557 in the Contribution to Non-Adoption Paperless Monthly, but currently it is returning the total amount per segment. I have tried the ALL(Total Documents [Paperless Segment] but it doesnt seem to be working right. Currently thats the only current thing I'm missing. My 'NonAdoptedTransactions' currently work fine.

 

Appreciate any help in this area. Thank you!

5 Replies