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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dcg38524
Helper III
Helper III

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 @dcg38524 

 

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
dcg38524
Helper III
Helper III

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 @dcg38524 

 

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.

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

 

Best regards,

Don

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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