equivalent DAX in excel 2013

sadath

Active Member
Joined
Oct 10, 2004
Messages
267
Office Version
  1. 365
Platform
  1. Windows
I have a DAX to calculate the operating days considering the store open/close date.
the below is working fine in Excel 2017. but getting error when the file is opened using Excel 2013

OpDaysLY:=FORMAT (
SUMX (
ADDCOLUMNS (
SUMMARIZE (
STORELIST,
STORELIST
Code:
,
                STORELIST[HD Start Date],
                STORELIST[End Date],
                "NSt", DATE ( 2017, MONTH ( MIN ( 'calendar'[DATE] ) ), 1 ),
                "NEnd", MAX ( 'calendar'[DATE] )-365
            ),
            "x", IF ( [HD Start Date] > [NEnd], [HD Start Date] - 1, MIN ( [End Date], [NEnd] ) )
                - IF ( [End Date] <= [NSt], [End Date] + 1, MAX ( [NSt], [HD Start Date] ) )
                + 1
        ),
        [x]
    ),
    "#"
)

can anyone suggest equivalent DAX in Excel 2013
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
sorry, please consider this

OpDays18:=FORMAT (
SUMX (
ADDCOLUMNS (
SUMMARIZE (
STORELIST,
STORELIST
Code:
,
                STORELIST[HD Start Date],
                STORELIST[End Date],
                "NSt", DATE ( 2018, MONTH ( MIN ( 'calendar'[DATE] ) ), 1 ),
                "NEnd", MAX ( 'calendar'[DATE] )
            ),
            "x", IF ( [HD Start Date] > [NEnd], [HD Start Date] - 1, MIN ( [End Date], [NEnd] ) )
                - IF ( [End Date] <= [NSt], [End Date] + 1, MAX ( [NSt], [HD Start Date] ) )
                + 1
        ),
        [x]
    ),
    "#"
)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top