Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts,
I have used the following expression for counting the no. of invoices (MTD) in a pivot table
Expression = count({<CalendarDate=, CalendarMonthYear= {">=$(=date(MonthStart(Max(CalendarDate))))<=$(=date(Max(CalendarDate)))"}>} InvoiceNo)
I have to include the following sql condition in the above expression.
sql condition = COUNT(DISTINCT CASE WHEN ORDTYPE='SL' THEN ISNULL(InvoiceNo,'') END)
How can i include this.
please help
Try:
count({<ORDTYPE={'SL',} CalendarDate=, CalendarMonthYear= {">=$(=date(MonthStart(Max(CalendarDate))))<=$(=date(Max(CalendarDate)))"}>} if(IsNull(InvoiceNo),'',InvoiceNo))
Try:
count({<ORDTYPE={'SL',} CalendarDate=, CalendarMonthYear= {">=$(=date(MonthStart(Max(CalendarDate))))<=$(=date(Max(CalendarDate)))"}>} if(IsNull(InvoiceNo),'',InvoiceNo))
Thanks a lot