需求
实现
1 ranking by amount = rankx(allselected(order_2[产品名称]),[total amount])
2 rowshowing_boolean =
var v_ranking = [ranking by amount]
var v_topN-no = [topN参数 值]
var v_result =int( v_ranking <= v_topN_no)
return v_result
3 将度量值2放入视觉对象筛选器,条件是等于1
4 topN 参数新建:
(1)自动创建
(2)DAX 函数创建
Topn的值 = generateseries(1,15,1)