ABSTRACT In the last decade, OLAP has taken an increasingly important role as a research field. Solutions, techniques and tools have been provided for both databases and data warehouses, which focus mainly on numerical data. These solutions are not suitable for textual data. Because of the fast growing of this type of data, there is a need for new approaches that take into account textual data. We present in this paper a new aggregation function for textual data in an OLAP context. Our approach is based on the affinity between keywords and uses the search of cycles in a graph to find the aggregated keywords of a corpus. We also present a comparison of the performances between our approach and three other methods, TOP-Keywords, BienCube and TOPIC.