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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kee
Frequent Visitor

Excel formula to Power BI

Hi,

 

Can anyone help me to convert the below excel formula to power BI DAX?

 

=SUMIFS([@[NET OWING]],[@DATE],">="&TODAY()-15)

 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

=CALCULATE (
    SUM ( Table1[NET OWING] ),
    FILTER ( Table1, Table1[Date] >= ( TODAY () - 15 ) )
)

View solution in original post

Anonymous
Not applicable

It'll basically be the same formula but twice, with the days changed to 59 and 29

 

CALCULATE (
    SUM ( Table1[NET OWING] ),
    FILTER ( Table1, Table1[Date] >= ( TODAY () - 59 ) )
)
    - CALCULATE (
        SUM ( Table1[NET OWING] ),
        FILTER ( Table1, Table1[Date] >= ( TODAY () - 29 ) )
    )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

=CALCULATE (
    SUM ( Table1[NET OWING] ),
    FILTER ( Table1, Table1[Date] >= ( TODAY () - 15 ) )
)

kee
Frequent Visitor

Thanks Chirayuw.

 

Can you help me again to covert the excel formula below?

 

=SUMIFS([@[NET OWING]],[@Date],">="&TODAY()-59)-SUMIFS([@[NET OWING]],[@Date],">="&TODAY()-29)

 

Anonymous
Not applicable

It'll basically be the same formula but twice, with the days changed to 59 and 29

 

CALCULATE (
    SUM ( Table1[NET OWING] ),
    FILTER ( Table1, Table1[Date] >= ( TODAY () - 59 ) )
)
    - CALCULATE (
        SUM ( Table1[NET OWING] ),
        FILTER ( Table1, Table1[Date] >= ( TODAY () - 29 ) )
    )

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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