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
Avermaak
Frequent Visitor

Day to day Difference

Good day, 

 

I am trying to calculate the day to day difference based on weekdays only, for my daily banking movement. 

I have would like the table to look as follows:

Avermaak_0-1671029209802.png

I used the following formula to calculate the difference but it does not take into account the weekends, how can I change my formula to exclude the weekends from the calculations and only base it on weekdays.

 

Movement =
VAR __PREV_DAY =
    CALCULATE(
        SUM('BST_INPUT'[Per Collect]),
        DATEADD('BST_INPUT'[Date],1,DAY)
    )
RETURN
    SUM('BST_INPUT'[Per Collect]) - __PREV_DAY
1 REPLY 1
IIPowerBlog
Helper I
Helper I

Hello. Try adding the WEEKDAY function to your formula, https://learn.microsoft.com/en-us/dax/weekday-function-dax 

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.

Top Solution Authors
Top Kudoed Authors