PowerPivot CALCULATE SUM

Anything related to PowerPivot and DAX Formuale
gavs1973
Posts: 1
Joined: Tue May 26, 2020 1:46 am

PowerPivot CALCULATE SUM

Postby gavs1973 » Tue May 26, 2020 1:48 am

Hi, would appreciate any help with this, In PowerPivot I'm trying to do a CALCULATE SUM similar to this in Excel...
I've tried EARLIEST in a FILTER but no success. Thanks in advance for any help. Gav

[attachment=0]powerpivsum.jpg[/attachment]
Attachments
powerpivsum.jpg
powerpivsum.jpg (84.56 KiB) Viewed 894 times

rwfigtree
Posts: 22
Joined: Tue Jan 05, 2021 8:49 pm
Location: Sydney, Australia

Re: PowerPivot CALCULATE SUM

Postby rwfigtree » Thu Jan 07, 2021 6:04 pm

calculatedcolumn=CALCULATE(SUM(Table1[Value]),FILTER(ALL(Table1),Table1[Company]=EARLIER(Table1[Company]) && Table1[Date]=EARLIER(Table1[Date]) && Table1[Flag] = 1))+0


Return to “PowerPivot/DAX”

Who is online

Users browsing this forum: No registered users and 5 guests