Forum Discussion

sekinod's avatar
sekinod
Icon for Helper II rankHelper II
5 years ago
Solved

Get Summary by Customer

My Data Table like this

 

Every customer has a unique NoteDate and Amount but several Post Dates. So in the power bi report, I want to get a table visual like below.

The amount is group by NoteDate when adding date columns from calendar table to visual, and it should be done by measure.

 

Thank you

sample.pbix 

  • sekinod 

    Try the following measure:

     

    Amount Measure = 
    
    SUMX(
        VALUES(Target[Customer]),
        CALCULATE(MAX(Target[Amount]))
    )
    
    ---------------------------OR--------------------------------
    
    Amount Measure = 
    SUMX(
        SUMMARIZE( Target , Target[Customer] , "_Amount", MAX(Target[Amount] ) ),
        [_Amount]
    )

     

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply 🙂


    Website YouTube  LinkedIn

2 Replies

  • sekinod 

    Try the following measure:

     

    Amount Measure = 
    
    SUMX(
        VALUES(Target[Customer]),
        CALCULATE(MAX(Target[Amount]))
    )
    
    ---------------------------OR--------------------------------
    
    Amount Measure = 
    SUMX(
        SUMMARIZE( Target , Target[Customer] , "_Amount", MAX(Target[Amount] ) ),
        [_Amount]
    )

     

    ________________________

    If my answer was helpful, please click Accept it as the solution to help other members find it useful

    Click on the Thumbs-Up icon if you like this reply 🙂


    Website YouTube  LinkedIn