Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

What should be the if expression in the report template

Hi everyone,

What should be the if expression that I should use in the yellow and green (especially) cells in my report template in order to get the results in the diff line that I am trying to express in the picture. Thanks

Pointer_0-1695815325031.png

@AleksiAlkio @Suvrutt_Gurjar @Marc_Dillon @WillowMobileSys @jaichith 

Solved Solved
0 38 790
2 ACCEPTED SOLUTIONS

<<IFS(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] =  [Date])))), "-",

AND(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] =  [Date])))), 
MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date]))) -MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))>5),

SUBSTITUTE(TEXT(MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))),".",",")

AND(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))), 
MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))<=5),

SUBSTITUTE(TEXT(MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date]))))".",","))>>

I solved it this way, thanks @Suvrutt_Gurjar @jaichith 

View solution in original post

Please try below three sub expressions together. Please highlight the subexpression whose results you wish to highlight in the template as the example below shows. 

 

<<IFS(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))), "-")>>


<<IFS(AND(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))),
MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date]))) -MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))>5),

SUBSTITUTE(TEXT(MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))),".",","))>>


<<IFS(AND(ISBLANK(ANY(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))),
MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date])))<=5),

SUBSTITUTE(TEXT(MAX(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID], [_THISROW-1].[Date] = [Date])))-MIN(SELECT(Report Table[Value], AND([_THISROW-1].[ID] = [ID],[_THISROW-1].[Date] = [Date]))))".",",")))>>

 

View solution in original post

38 REPLIES 38
Top Labels in this Space