Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Modify measure formula to show distinct value (only if same item NO)

My measure formula:

Sum(distinct(if(Gate='Gate D' and Status='Completed' and Temp='Task_17'and

[Date Modified.autoCalendar.YearMonth]>= (AddMonths(MonthStart(Today()-20),-11))

,[SOW Value])))


Value shown = 18,619,846



How to modify my formula in order to get 19,230,824 ?


awd.PNG

cgcgc.PNG

1 Solution

Accepted Solutions
raman_rastogi
Partner - Creator III
Partner - Creator III

Try this

sum(aggr(Sum(distinct(if(Gate='Gate D' and Status='Completed' and Temp='Task_17'and

[Date Modified.autoCalendar.YearMonth]>= (AddMonths(MonthStart(Today()-20),-11))

,[SOW Value]))),SR No))

View solution in original post

3 Replies
raman_rastogi
Partner - Creator III
Partner - Creator III

Try this

sum(aggr(Sum(distinct(if(Gate='Gate D' and Status='Completed' and Temp='Task_17'and

[Date Modified.autoCalendar.YearMonth]>= (AddMonths(MonthStart(Today()-20),-11))

,[SOW Value]))),SR No))

mdmukramali
Specialist III
Specialist III

Hi,

can you  try this

=Sum(

{<

          Gate={'Gate D'} ,Status={'Completed'},Temp={'Task_17'},

           [Date Modified.autoCalendar.YearMonth]={">=AddMonths(MonthStart(Today()-20)-11)"}

>}

[SOW Value])


or


=Aggr(

Sum(

{<

          Gate={'Gate D'} ,Status={'Completed'},Temp={'Task_17'},

           [Date Modified.autoCalendar.YearMonth]={">=AddMonths(MonthStart(Today()-20)-11)"}

>}

[SOW Value])

,No)





Anonymous
Not applicable
Author

Thanks Raman. Its works.