Skip to main content
cancel
Showing results for 
Search instead 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

Reply
tksnota
Helper III
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

 

tksnota_1-1718284365522.png

 

2 ACCEPTED SOLUTIONS
v-yohua-msft
Community Support
Community Support

Hi, @tksnota 
Based on your information, I create a table:

vyohuamsft_1-1718345355834.png

 

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:

vyohuamsft_0-1718345260417.png

 

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.

View solution in original post

thanks. it worked

View solution in original post

3 REPLIES 3
v-yohua-msft
Community Support
Community Support

Hi, @tksnota 
Based on your information, I create a table:

vyohuamsft_1-1718345355834.png

 

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:

vyohuamsft_0-1718345260417.png

 

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.

thanks. it worked

lbendlin
Super User
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.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.