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

Expiration Dashboard to track quantity and volume to expire in following days

Hello everybody, I'm trying to create an "expiration dashboard" in order to track and forecast upcoming expenditures.

I should measure quantity and volume/total amount ($$$) to expire in 4, 3, 2, and 1 week from the actual day I check the dashboard (it updates every single day bringing thousend of lines from MySQL).

 

Until now, all of my data is provided in one single table, direct from a MySQL server.

In order to forecast upcomings expirations from the actual date, my guess is I should create a Date/Time Table. But do not know which are the formulas to get my data in:

 

$xxxx will expire in a week from now, $xxxx in two weeks from now, $xxxx in three weeks from now.

Please if you could help me figuring this out, and which formulas i should use i would appreciate it very much. 

 

Also if you know any visualitation I can use similar to a calendar, that would show me in a very intuitive way the amount that expires every single day from today for the next 4 weeks it would be great!

 

Most important columns I need to work this out are the followings:

(Most of expirations date are at 30 days from emission date, others are "random")

IDInvoiceEmission DateExpiration DateAmount
02-030-00206020-7OMQ16313/12/1512/1/16$ 2.151,
02-999-04540047-4OMQ18313/12/1512/1/16$ 2.151,
02-138-00228343-3OMQ18318/1/1617/2/16$ 2.248,5
02-061-00223703-1OMQ18324/1/1623/2/16$ 2.248,5
02-119-00040663-2PMX2002/3/161/4/16$ 2.389,5
02-138-00237140-1PMX20024/4/1624/5/16$ 2.389,5
02-051-00276165-6OMQ1631/6/161/7/16$ 2.695,5
02-105-00223829-5PMX24421/7/1620/8/16$ 2.964,
02-032-00189819-0PMX24423/7/1629/8/16$ 2.964,
02-046-00128680-5PMX24427/7/1626/8/16$ 2.964,
02-069-00135242-1AA424ZB18/8/1617/9/16$ 2.964,
02-069-00135243-1AA424ZF18/8/1617/9/16$ 2.964,
02-069-00135244-2AA424ZG18/8/1627/9/16$ 2.964,
02-069-00135241-0AA424ZJ18/8/1617/9/16$ 2.964,
02-102-00059873-8PMX21211/9/1611/10/16$ 2.964,
02-104-00194477-8OMQ16329/9/1629/10/16$ 2.964,
02-119-00126574-5PLU4546/10/1625/11/16$ 2.964,
02-032-00219169-6OMQ1837/10/166/11/16$ 2.964,
02-045-00052378-5OMQ1837/10/1626/11/16$ 2.964,02
02-032-00216751-3PEG52612/10/1611/11/16$ 2.964,
02-119-00154573-5PDV40928/11/1628/12/16$ 988,02
10508396PEG53015/12/1614/1/17$ 12.240,
Q14517406AA406QZ29/12/1628/1/17$ 8.032,5
02-016-00201151-7AA424ZA1/1/1731/1/17$ 2.964,02
02-069-00205889-8AA424ZA1/1/1731/1/17$ 2.964,02
02-999-04613077-6AA424ZA11/1/1719/2/17$ 2.964,02
02-032-00251014-9AA424ZA11/1/1710/2/17$ 2.964,02
10529930OKA56714/1/1713/2/17$ 6.120,
Q14770320PEG52819/1/1718/2/17$ 2.677,5
02-138-00267137-5PMX24427/1/1726/2/17$ 2.964,02
02-030-00340041-8PMX2443/2/1725/3/17$ 2.964,02
B16608607PEG52816/2/1718/3/17$ 1.785,
C00780076PDV3827/3/176/4/17$ 1.785,
B16849660POW7178/3/177/4/17$ 1.785,
Q15325964OMQ18320/3/1719/4/17$ 1.785,
Q15169232PEG5552/4/172/5/17$ 2.677,5
Q15428240PEG52818/4/1718/5/17$ 1.785,
10624399AA087PL20/4/1720/5/17$ 12.240,
B16921761OMQ18320/4/1720/5/17$ 1.785,
B16725476AA406QZ3/5/172/6/17$ 1.785,
02-119-00215588-7PMX24424/5/1723/6/17$ 3.199,5
02-061-00371957-8AB084QX26/5/1725/6/17$ 3.199,5
02-119-00223351-0PDV40916/6/1716/7/17$ 3.199,5

 

 

Thanks a lot!

 

Best Regards

 

1 ACCEPTED SOLUTION

Hi @franorio,

 

Please download the demo from the attachment. Since it's dynamic, the snapshot below is a little different from yours.

1. Create a Date table.

Calendar =
ADDCOLUMNS (
    CALENDARAUTO (),
    "DayName", FORMAT ( [Date], "dddd" ),
    "WeekDay", WEEKDAY ( [Date], 2 ),
    "Week", SWITCH (
        TRUE (),
        [Date] >= TODAY ()
            && [Date]
                <= TODAY () + 6, "Week 1",
        [Date]
            >= TODAY () + 7
            && [Date]
                <= TODAY () + 13, "Week 2",
        [Date]
            >= TODAY () + 14
            && [Date]
                <= TODAY () + 20, "Week 3",
        [Date]
            >= TODAY () + 21
            && [Date]
                <= TODAY () + 27, "Week 4"
    )
)

2. Establish a relationship.

3. Just drag these columns to the Matrix visual.

Expiration-Dashboard-to-track-quantity-and-volume-to-expire-in-following-days

 

Best Regards,
Dale

Community Support Team _ Dale
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

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @franorio,

 

Your sample data here are all expired. Is it just an example? 

Is the following your scenario? Is the Desired Result your solution?

ID     Expiration Date      Desired Result

A       12/15/2018           1 week

B        12/29/2018          2 week

 

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-jiascu-msft, sorry for the delay.

 

What I'm trying to accomplish would be the following matrix.

 

 MondayTuesdayWednesdayThursdayFridaySaturdaySundayTotal $ Week Total Q Week 
Week 1      $        4,302.00 $        4,497.00 $        8,799.004
Week 2 $ 2.389,5  $        8,049.00 $ 2.964,      $        8,049.005
Week 3 $        5,928.00   $        5,928.00   $        5,928.00 $      17,784.006
Week 4    $        5,928.00    $        5,928.002

 

Used the following info:

 

IDInvoiceEmission DateExpiration DateAmount 
02-030-00206020-7OMQ16313/12/1529/12/2018$ 2.151, 
02-999-04540047-4OMQ18313/12/1529/12/2018$ 2.151,4,302.00
02-138-00228343-3OMQ18318/1/1630/12/18$ 2.248,5 
02-061-00223703-1OMQ18324/1/1630/12/18$ 2.248,54,497.00
02-119-00040663-2PMX2002/3/201631/12/2018$ 2.389,5$ 2.389,5
02-138-00237140-1PMX20024/4/161/1/2019$ 2.389,5 
02-051-00276165-6OMQ1631/6/20161/7/2019$ 2.695,5 
02-105-00223829-5PMX24421/7/161/1/2019$ 2.964,8,049.00
02-032-00189819-0PMX24423/7/162/1/2019$ 2.964,$ 2.964,
02-046-00128680-5PMX24427/7/167/1/2019$ 2.964, 
02-069-00135242-1AA424ZB18/8/167/1/2019$ 2.964,5,928.00
02-069-00135243-1AA424ZF18/8/1610/1/2019$ 2.964, 
02-069-00135244-2AA424ZG18/8/1610/1/2019$ 2.964,5,928.00
02-069-00135241-0AA424ZJ18/8/1613/1/19$ 2.964, 
02-102-00059873-8PMX21211/9/201613/1/2019$ 2.964,5,928.00
02-104-00194477-8OMQ16329/9/1617/1/19$ 2.964, 
02-119-00126574-5PLU4546/10/201617/1/19$ 2.964,5,928.00

 

Standing today, just want to see total to pay by day and by week. only for the upcoming 4 weeks

 

Thanks!

Hi,

 

How does one get the week numbers?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @franorio,

 

Please download the demo from the attachment. Since it's dynamic, the snapshot below is a little different from yours.

1. Create a Date table.

Calendar =
ADDCOLUMNS (
    CALENDARAUTO (),
    "DayName", FORMAT ( [Date], "dddd" ),
    "WeekDay", WEEKDAY ( [Date], 2 ),
    "Week", SWITCH (
        TRUE (),
        [Date] >= TODAY ()
            && [Date]
                <= TODAY () + 6, "Week 1",
        [Date]
            >= TODAY () + 7
            && [Date]
                <= TODAY () + 13, "Week 2",
        [Date]
            >= TODAY () + 14
            && [Date]
                <= TODAY () + 20, "Week 3",
        [Date]
            >= TODAY () + 21
            && [Date]
                <= TODAY () + 27, "Week 4"
    )
)

2. Establish a relationship.

3. Just drag these columns to the Matrix visual.

Expiration-Dashboard-to-track-quantity-and-volume-to-expire-in-following-days

 

Best Regards,
Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.