Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powerbi 通过DAX获得电力BI的最低10%_Powerbi_Dax_Bottom - Fatal编程技术网

Powerbi 通过DAX获得电力BI的最低10%

Powerbi 通过DAX获得电力BI的最低10%,powerbi,dax,bottom,Powerbi,Dax,Bottom,我想在我在Power Bi中的分析中得到报价栏底部的10%。下面是我预期结果的图像。底部10%将有另一列。如果包含在底部10%中,则返回1,否则返回0 使用以下代码: Flag_Bottom10% = var alllignes=COUNTROWS(All([CODE])) var currentrate=[%Offerrate] return IF( DIVIDE(COUNTROWS(filter('table name',[%Offerrate]>=currentrate)

我想在我在Power Bi中的分析中得到报价栏底部的10%。下面是我预期结果的图像。底部10%将有另一列。如果包含在底部10%中,则返回1,否则返回0

使用以下代码:

 Flag_Bottom10% = var alllignes=COUNTROWS(All([CODE]))
 var currentrate=[%Offerrate]
 return 
 IF( DIVIDE(COUNTROWS(filter('table name',[%Offerrate]>=currentrate)),alllignes )<=0.1,1,0)
Flag\u Bottom10%=var alllignes=COUNTROWS(All([code]))
var currentrate=[%的费率]
返回

IF(DIVIDE(COUNTROWS(filter('table name',[%Offerrate]>=currentrate)),alllignes)如何计算底部10%?报价率是基础数据的一部分?还是计算结果?是的,计算报价率列的底部10%。报价率列是基础数据的一部分。底部10%是0%-10%?还是需要从16.26%-100%的范围计算?底部10%是0%-10%。不需要计算10%以上的范围我想我做了q好的,告诉我16.26%的回报率是多少?