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
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
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.