PDF Grouping a part of the data [UPDATE]

Hello Everyone, 

I know PDF grouping has been discussed a lot, i just couldn't find something similar to this case.


Below is the template am using to generate a load list of every truck. 
This will generate a pdf of every truck reference.

The data in red is unique / same for every truck Ref

The data in green are different as it's the shipments / cargo details.

Hussein_Osseily_0-1708338388844.png

What i am trying to acheive here, is to generate one PDF file that will include all the lists that are trucked by the same trucking supplier (column name [Trucking by]) 
All data are in the same table "Unplanned Shipments"

 

Updated:

I added an outer Start select expression as below, it works but if the same Truck Reference has several Shipments its creating severals of the same reference . 

Hussein_Osseily_0-1708342643321.png

 




Any help would be appreciated.

Solved Solved
0 3 124
1 ACCEPTED SOLUTION


@Hussein_Osseily wrote:

I added an outer Start select expression as below, it works but if the same Truck Reference has several Shipments its creating severals of the same reference . 


 

You may want to try below.

Please create a slice called something like "Minrow_Slice" with an expression something like 

[ID]=MINROW("LL", "_ROWNUMBER", [Trucking By]=[_THISROW].[Trucking By])

Then your outer START expression can be something like 

<<START: Minrow_Slice[ID] >>

View solution in original post

3 REPLIES 3


@Hussein_Osseily wrote:

I added an outer Start select expression as below, it works but if the same Truck Reference has several Shipments its creating severals of the same reference . 


 

You may want to try below.

Please create a slice called something like "Minrow_Slice" with an expression something like 

[ID]=MINROW("LL", "_ROWNUMBER", [Trucking By]=[_THISROW].[Trucking By])

Then your outer START expression can be something like 

<<START: Minrow_Slice[ID] >>

Thanks sir, this helped a lot and it works in my case. 
Other workaround that i just figured:

Virtual column Grouping: 

ORDERBY(SELECT(Unplanned Shipments[ID],AND([Trucking By]=[_THISROW].[Trucking By],[Truck Ref]=[_THISROW].[Truck Ref])),[ULD],TRUE)

Template:

<<Start: SELECT(Unplanned Shipments[ID],AND([ID]=INDEX([GROUP],1),[Trucking By]=[_THISROW].[Trucking By]))>>

<<Start: [GROUP]>>
<<End>>
<<End>>




You are welcome.

Top Labels in this Space