cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper III

## 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

2 ACCEPTED SOLUTIONS
Community Support

Hi, @tksnota
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:

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.

Helper III

thanks. it worked

3 REPLIES 3
Community Support

Hi, @tksnota
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:

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.

Helper III

thanks. it worked

Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.