Forum Discussion
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
- Anonymous2 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.
- Anonymous2 years ago
thanks. it worked
3 Replies
- lbendlinSuper 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-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 - AnonymousNot applicable
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.
- AnonymousNot applicable
thanks. it worked