Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Create Stacked Column Chart by Due Age

Hi,

 

Is it possible to create a measure of stacked column based on due age with these criteria plus showing the invoice amount?

 

- less than 32days

- less than 31 days

- within 31-60 days

- within 61-90 days

- within 91-120 days

- over 120 days

 

//NT

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, Anonymous 
    Based on your information, I create a table:

     

    You can create a calculate column and try the following DAX:

    Due Age Category = 
        SWITCH (
            TRUE (),
            'Table'[Invoice Age] <= 31, "Less than 32 days",
            'Table'[Invoice Age] <= 60, "31-60 days",
            'Table'[Invoice Age] <= 90, "61-90 days",
            'Table'[Invoice Age] <= 120, "91-120 days",
            'Table'[Invoice Age] > 120, "Over 120 days"
        )
    

     

    Here is my preview:

     

    How to Get Your Question Answered Quickly

    Best Regards

    Yongkang Hua

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    2 years ago

    thanks. it worked

3 Replies