请问某人,Pentaho OLAP的实施是否支持m2m(多对多)连接? 需要解决的任务: 数据存储在下表中:
1. Table facts: facts (fact_id, loc_id, ...)
2 . Table persons : persons (person_id, name)
3 . Table relation between persons and facts : con_facts_pesons (id, fact_id, person_id)
4 . Table locations: locations (loc_id, name)
OLAP多维数据集(事实表)包含两个维度:人员和位置 一个Measure:count(fact_id)。
我需要构建一个这样的查询:
SELECT
NON EMPTY {[Measures]. [Count]} ON COLUMNS,
NON EMPTY {Hierarchize ({[Location]. [Location]. Members})} ON ROWS
FROM [Docs]
WHERE {[Persons]. [Jay], [Persons]. [Tom]}
结果应该得到这样的数据:
Location_name Count of facts
Location_1 --- 2
Location_2 --- 4
Location_3 --- 5
Location_4 --- 2
与与汤姆和周杰伦有关系的事实相关联的地点。