Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Report on over due orders via. 30days, 90days, 180days, 1 year, 2years, over 3years

Hello Power BI Experts,

 

We have a collection of data and would like to report accumulated orders that has not been process over time i.e. 30days, 90days, 180days, 1 year, 2years, over 3years (see table below). 

 

In your opinion which DAX measure formula would work best in this situation?

 

Thank you in advance

 

Example data:

            

Order Number  StatusDelay (days)
CRQ000000726732Scheduled105.99
CRQ000000727120Rejected103.95
CRQ000000726876Scheduled105.97
CRQ000000727082Implementation In Progress108.81
CRQ000000729256Planning In Progress107.38
CRQ000000437911Implementation In Progress672.82
CRQ000000438854Request For Authorization654.60
CRQ000000439689Completed621.60
CRQ000000446619Implementation In Progress585.60
CRQ000000444950Rejected649.85
CRQ000000445895Scheduled621.39
CRQ000000445001Completed500.89
CRQ000000451915Scheduled623.60
CRQ000000453607Implementation In Progress591.64
CRQ000000454030Implementation In Progress546.64
CRQ000000451310Completed626.60
CRQ000000454023Implementation In Progress616.39
CRQ000000449555Scheduled598.60
CRQ000000455209Completed612.47
CRQ000000457510Completed602.60
CRQ000000455795Planning In Progress563.64
CRQ000000460354Rejected610.55
CRQ000000457410Implementation In Progress585.60
CRQ000000460469Planning In Progress598.60
CRQ000000457966Implementation In Progress585.60

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous 

 

if you'd like to sort the delay days by different labels as "0 - 30 Days", "30 - 90 Days"... the solution you found is a typical way.

But I made some modification on this:

Age of Delay =

SWITCH (

    TRUE (),

    'Table1'[Delay] >= 0

        && 'Table1'[Delay] <= 30, "0 - 30 Days",

    'Table1'[Delay] > 30

        && 'Table1'[Delay] <= 90, "30 - 90 Days",

    'Table1'[Delay] > 90

        && 'Current'[Delay] <= 180, "90 - 180 Days",

    'Table1'[Delay] > 180

        && 'Table1'[Delay] <= 365, "180 days - 1 Year",

    'Table1'[Delay] > 365

        && 'Table1'[Delay] <= 730, "1 year - 2 Years"

)
Community Support Team _ Dina Ye
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

3 REPLIES 3
Anonymous
Not applicable

After reviewing several post within this forum I try the measure below - Let me know if there are any other solutions better than the one I selected.

 

 

Age of Delay =

SWITCH (

    TRUE (),

    'Table1'[Delay] >= 29

        && 'Table1'[Delay] <= 30, "0 - 30 Days",

    'Table1'[Delay] > 89

        && 'Table1'[Delay] <= 90, "30 - 90 Days",

    'Table1'[Delay] > 179

        && 'Current'[Delay] <= 180, "90 - 180 Days",

    'Table1'[Delay] > 364

        && 'Table1'[Delay] <= 365, "180 days - 1 Year",

    'Table1'[Delay] > 729

        && 'Table1'[Delay] <= 730, "1 year - 2 Years"

)

Hi @Anonymous 

 

if you'd like to sort the delay days by different labels as "0 - 30 Days", "30 - 90 Days"... the solution you found is a typical way.

But I made some modification on this:

Age of Delay =

SWITCH (

    TRUE (),

    'Table1'[Delay] >= 0

        && 'Table1'[Delay] <= 30, "0 - 30 Days",

    'Table1'[Delay] > 30

        && 'Table1'[Delay] <= 90, "30 - 90 Days",

    'Table1'[Delay] > 90

        && 'Current'[Delay] <= 180, "90 - 180 Days",

    'Table1'[Delay] > 180

        && 'Table1'[Delay] <= 365, "180 days - 1 Year",

    'Table1'[Delay] > 365

        && 'Table1'[Delay] <= 730, "1 year - 2 Years"

)
Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Dina Ye, thank you - I like your solution and truly appreciate all your help and support.

 

Best regards,

Don

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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