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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Eryka90
Frequent Visitor

Daily monitoring (Calendar date)

Hi All,

 

I'm preparing a dashboard for daily monitoring on the invoice payment based on the invoice due date.

Here is samply of my data:

Notes: Status are compare with today date (11/10/2023)

Invoice NoNet Due DateStatus
PLSMAUS02002798111/6/2023Pass Due
PLSMAUS02002798111/7/2023Pass Due
US1000947011/8/2023Pass Due
CBNP02JAN2311/9/2023Pass Due
AC0303MAR2311/10/2023Today Due
CBNP02JAN2311/11/2023Not Due
AC0303MAR2311/12/2023Not Due
CBNP02JAN2311/13/2023Not Due
AC0303MAR2311/14/2023Not Due
CBNP02JAN2311/15/2023Not Due
AC0303MAR2311/16/2023Not Due
CBNP02JAN2311/17/2023Not Due

 

I want to display the cumulative status for daily monitoring. Example for date 11/10/2023, there will be data for pass due (4), today due (1), Not due (7).

 

I create new table for calendar and link with invoice table (due date). However, its give me the chart like this:

Eryka90_0-1699578285547.png

Eryka90_1-1699578357305.png

 

I want the chart to be like this 

Eryka90_2-1699578388847.png

 11/10/202311/11/202311/12/202311/13/202311/14/202311/15/202311/16/202311/17/202311/18/202311/19/202311/20/202311/21/2023
Pass Due012142641358
Today Due111111111111
Not Due11109876543210

 

Can anyone assist me how to create the DAX and what the tips to make it possible.

 

Thank you.

8 REPLIES 8
Anonymous
Not applicable

Hi @Eryka90 ,

Please try to create measure with below dax formula:

Table 2 = CALENDAR(FIRSTDATE('Table'[Net Due Date]),LASTDATE('Table'[Net Due Date]))
Not Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Net Due Date] = _a && [Status] = "Not Due" )
RETURN
    COUNTROWS ( tmp )
Pass Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Net Due Date] = _a && [Status] = "Pass Due" )
RETURN
    COUNTROWS ( tmp )
Today Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Net Due Date] = _a && [Status] = "Today Due" )
RETURN
    COUNTROWS ( tmp )

vbinbinyumsft_0-1699929622782.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

 

I did add your Dax in my PBI report. However its only calculate for Not Due.

Eryka90_0-1699943866670.png

 

I think the main reason is because of DAX on status give me this result as i use to calculate the status as below:

New_Due Status =
IF(ISBLANK('Pending Items'[Net Due Date]), "Due Date Blank",
IF('Pending Items'[Net Due Date] > TODAY(), "Not Due",
IF('Pending Items'[Net Due Date] < TODAY(), "Past Due", "Due Today")

 

The status information is not in my data at first place.

 

Here is sample data : https://docs.google.com/spreadsheets/d/1KvWVo_gv4VYO4ShogCGEGI9s840mYjLw/edit?usp=drive_link&ouid=107780509465376624533&rtpof=true&sd=true

Anonymous
Not applicable

Hi @Eryka90 ,

It's perfectly fine to display it this way, it's according to your data, the bars aren't stacked up because your status are dynamically generated based on the date, and then you use the date as the x-axis, so every date must have only one status data.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

 

This is not meet the purpose since I want to monitor on the invoice payment daily. Therefore, by looking at my chart. I should know how many invoice will be due today, not due and already pass due date. I'm not sure whether the x-axis date should be related with due date or not.

 

Regards

Eryka

Anonymous
Not applicable

Hi @Eryka90 ,

Please create measures with below dax formula:

Not Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER ( ALL ( 'Table' ), [Net Due Date] <= _a && [New_Due Status] = "Not Due" )
RETURN
    COUNTROWS ( tmp )
Pass Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER (
        ALL ( 'Table' ),
        [Net Due Date] <= _a
            && [New_Due Status] = "Past Due"
    )
RETURN
    COUNTROWS ( tmp )
Today Due =
VAR _a =
    SELECTEDVALUE ( 'Table 2'[Date] )
VAR tmp =
    FILTER (
        ALL ( 'Table' ),
        [Net Due Date] <= _a
            && [New_Due Status] = "Due Today"
    )
RETURN
    COUNTROWS ( tmp )

vbinbinyumsft_0-1700034277134.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

 

Thanks for your assistance. Your DAX perfectly working fine for Today Due and Not Due. 

However, I'm still stuck at Pass Due. Your DAX provided wrong value on the chart. Since I'm still beginner, I dont have clear picture how its should be calculate.

 

Here is example

Eryka90_0-1700532650144.png

The value for pass due should follow the value as in table by daily, not the total.

And also i have few grouping on the data. By choosing selected filter, the data should be reflect well. However its not reflect on my chart.

 

Appreciate if you can advise more.

 

Thank you.

 

Here is the link of Daily Pending Item 

Eryka90
Frequent Visitor

Hi Rupak,

 

I think this is related with DAX since i'm use 

New_Due Status =
IF(ISBLANK('Pending Items'[Net Due Date]), "Due Date Blank",
IF('Pending Items'[Net Due Date] > TODAY(), "Not Due",
IF('Pending Items'[Net Due Date] < TODAY(), "Past Due", "Due Today")
)
)

 

so that my data become like this

Eryka90_0-1699928948559.png

This will not resolve my problem by using staked column chart since the data not ovelapping.

I'm looking for way to monitor based on status (Due today, not due, pass due) for each date.

Rupak_bi
Super User
Super User

Hi,

Use Staked Column chart -> Put date in X Axis --> Count of Invoice No in Y Axis  --> Put Status column in Legend.

Your job will be done

Thanks

 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.