有一个与创建自定义视觉效果相关的众所周知的问题Power BI Report Sever
- 您无法创建多个不相关的dataViewMappings
. 这意味着您放入的每个字段都Fields
必须相关。
用户长期以来一直要求添加此功能。
不过目前看来Microsoft
还没有实施。
https://github.com/Microsoft/PowerBI-visuals/issues/251
我找到了一种解决方法 - 您可以将所有不同的桌子组合成一个,并用一把tableName
钥匙链接起来。
例如,您有一个table A
:
value1|value2|tableName
1|2|tableA
3|4|tableA
Run Code Online (Sandbox Code Playgroud)
和一个table B
:
value3|tableName
a|tableB
b|tableB
Run Code Online (Sandbox Code Playgroud)
您可以tableC
使用M
函数Table.Combine({tableA, tableB})
或其他技术来创建一个。结果,它看起来像这样:
value1|value2|value3|tableName
1|2|null|tableA
3|4|null|tableA
null|null|a|tableB
null|null|b|tableB
Run Code Online (Sandbox Code Playgroud)
然后,在您的自定义视觉对象中,您实现以下解析输入的函数:
public parseOptionsToTables(options: VisualUpdateOptions) {
var i: number;
var j: number;
var cntRows: number;
var cntCols: number;
var nameTable: string;
var tempDict: {} = {};
var tempVal: any;
var colName: …
Run Code Online (Sandbox Code Playgroud) DBeaver Version
:CE 22.0.4
Platform
:Windows 10
ClickHouse Driver
:Yandex ClickHouse 驱动程序(服务器版本 21.3+)
我用来DBeaver
向本地ClickHouse
实例发出查询请求。在教程页面(https://clickhouse.com/docs/en/optimize/sparse-primary-indexes)中,我看到以下查询的结果显示了一个参数Processed 8.87 million rows
,以及其他统计信息,例如网络速度。
SELECT URL, count(URL) as Count\nFROM hits_NoPrimaryKey\nWHERE UserID = 749927693\nGROUP BY URL\nORDER BY Count DESC\nLIMIT 10\n
Run Code Online (Sandbox Code Playgroud)\n\xe2\x94\x8c\xe2\x94\x80URL\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xac\xe2\x94\x80Count\xe2\x94\x80\xe2\x94\x90\n\xe2\x94\x82 http://auto.ru/chatay-barana.. \xe2\x94\x82 170 \xe2\x94\x82\n\xe2\x94\x82 http://auto.ru/chatay-id=371...\xe2\x94\x82 52 \xe2\x94\x82\n\xe2\x94\x82 http://public_search \xe2\x94\x82 45 \xe2\x94\x82\n\xe2\x94\x82 http://kovrik-medvedevushku-...\xe2\x94\x82 36 \xe2\x94\x82\n\xe2\x94\x82 http://forumal \xe2\x94\x82 33 \xe2\x94\x82\n\xe2\x94\x82 http://korablitz.ru/L_1OFFER...\xe2\x94\x82 14 \xe2\x94\x82\n\xe2\x94\x82 http://auto.ru/chatay-id=371...\xe2\x94\x82 14 \xe2\x94\x82\n\xe2\x94\x82 http://auto.ru/chatay-john-D...\xe2\x94\x82 13 \xe2\x94\x82\n\xe2\x94\x82 http://auto.ru/chatay-john-D...\xe2\x94\x82 10 \xe2\x94\x82\n\xe2\x94\x82 http://wot/html?page/23600_m...\xe2\x94\x82 9 \xe2\x94\x82\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\xb4\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x98\n\n10 rows …
Run Code Online (Sandbox Code Playgroud) 问题是关于在VBA中排序数据.假设我有一个Range("A1:A10")
我想按升序排序的.但是,我不想在我的电子表格中进行任何更改(因此所有计算都在VBA代码中进行).操作的输出应该是NewRange
所有数字都被排序的位置.
对此问题有什么想法吗?