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

Date Range With AGGR Function

Hi All,

I have created the Bar Chart with AGGR function with below expression.

Expression:

Sum(Aggr(Sum({<ShiftDate= {"<=$(=max(ShiftDate))"},FiscalMonth = p(FiscalMonth)>}[Net Available]),Cell,ShiftDate))

if I select ShiftDate = '07/07/2021', The date Should start from '28/06/2021'  to '07/07/2021' and so on.

PFA...

Thanks in advance.

Regards,

Dinesh Kumar Mani.

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

Sum({<ShiftDate= {"<=$(=max(ShiftDate))"},FiscalMonth = p(FiscalMonth)>}Aggr(Sum({<ShiftDate= {"<=$(=max(ShiftDate))"},FiscalMonth = p(FiscalMonth)>}[Net Available]),Cell,ShiftDate))

o/p:

MayilVahanan_0-1626315829993.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi

Try like below

Sum({<ShiftDate= {"<=$(=max(ShiftDate))"},FiscalMonth = p(FiscalMonth)>}Aggr(Sum({<ShiftDate= {"<=$(=max(ShiftDate))"},FiscalMonth = p(FiscalMonth)>}[Net Available]),Cell,ShiftDate))

o/p:

MayilVahanan_0-1626315829993.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.