workflow doc template table group by category

Hi Need help with doc expression for a workflow with the expected output (PDF): there's only one data table, appreciate your help thanks

Manufacturer A


Product 1Chemical Name 1Usage 1CAS1Certificate 1
Product 2Chemical Name 2Usage 2CAS2Certificate 2
 

Manufacturer B


Product 3Chemical Name 3Usage 3CAS3Certificate 3
Solved Solved
0 8 175
1 ACCEPTED SOLUTION

This?

<<Start: FILTER("Applications", ISNOTBLANK(FILTER("Product Info", IN([_THISROW-1].[Application], [Applications]))))>>
<<[Application]>>
<<Start: FILTER("Product Info", IN([_THISROW-1].[Application], [Applications]))>>
<<[Product]>>
<<End>>
<<End>>

View solution in original post

8 REPLIES 8

Steve
Platinum 5
Platinum 5

Like this:

<<Start: ORDERBY(FILTER("Data Table", ([_RowNumber] = MIN(SELECT(Data Table[_RowNumber], ([Manufacturer] = [_THISROW-1].[Manufacturer]))))), [_RowNumber], FALSE)>>
<<[Manufacturer]>>
<<Start: ORDERBY(FILTER("Data Table", ([Manufacturer] = [_THISROW-1].[Manufacturer])), [_RowNumber], FALSE)>>
<<[Product]>>
<<[Chemical Name]>>
<<[Usage]>>
<<[CAS]>>
<<[Certificate]>>
<<End>>
<<End>>

thank you very much, it worked,

but I also have to group data by individual value in  "category" where column "category is enum list,  (each product can belong to multiple categories) , I need a pdf tables group by unique "category"
the above syntex does not work in this case.  appreciate your help thank you

Please explain more. I do not understand.

How to generate pdf product info group by individual value in "Application" column when it's a list

Applications: Thickener

ProductProcess Platform
Metolose 90SH-100000Direct Compression , Wet Granulation
Metolose 90SH-15000HME , Coating
Metolose 90SH-4000Direct Compression , Wet Granulation

 

Applications: Binders

ProductProcess Platform
Metolose 90SH-100000Direct Compression , Wet Granulation
Metolose 90SH-15000HME , Coating
Metolose 90SH-4000Direct Compression , Wet Granulation

 

Data Table: "Product Info"

ProductApplicationsProcess Platform
Metolose 90SH-100000Thickenerใ€Film formingใ€BindersDirect Compression , Wet Granulation
Metolose 90SH-15000ThickenerHME , Coating
Metolose 90SH-4000Thickenerใ€BindersDirect Compression , Wet Granulation
Metolose 65SH-4000Thickenerใ€BindersHME , Coating
Metolose 65SH-400Thickenerใ€BindersDirect Compression , Wet Granulation
Metolose 65SH-50ThickenerHME , Coating
Metolose 60SH-10000ThickenerDirect Compression , Wet Granulation
Metolose 60SH-4000 ThickenerHME , Coating
Metolose 60SH-50Thickenerใ€BindersDirect Compression , Wet Granulation
Metolose 90SH-100000SRSustained Release agentHME , Coating
Metolose 90SH-15000SRSustained Release agentDirect Compression , HME , Coating
Metolose 90SH-4000SRSustained Release agentWet Granulation
Metolose 90SH-100SRSustained Release agentDirect Compression , HME , Coating
Aqoat AS - MFEnteric Releaseใ€HME carrierHME, Wet Granulation
Aqoat AS - MMPEnteric Releaseใ€HME carrierHME, Wet Granulation
L-HPC  LH 11Bindersใ€DisintegrantDirect Compression , HME , Coating
L-HPC  LH 21Bindersใ€DisintegrantDirect Compression , HME , Coating
L-HPC  LH 22Bindersใ€DisintegrantDirect Compression , HME , Coating

The Product Info table you present above cannot be readily used to produce the report. To do what you want, you'll need a table that identifies each distinct Application. A simple table with only one column that lists all possible Application values would be sufficient.

Sorry, yes, there's a simple "Application" table as you mentioned above

how to write the doc template expression when it's  for workflow automation pdf?

thank you

 

 

This?

<<Start: FILTER("Applications", ISNOTBLANK(FILTER("Product Info", IN([_THISROW-1].[Application], [Applications]))))>>
<<[Application]>>
<<Start: FILTER("Product Info", IN([_THISROW-1].[Application], [Applications]))>>
<<[Product]>>
<<End>>
<<End>>

YES!!!!! it works, thank you soooo very much. Appreciate your help.  You are amazing.

Top Labels in this Space