此MDX查询:
WITH
MEMBER [Measures].[# answered] AS
([Dispozice].[Dispozice].[ANSWERED], [Measures].[# hovorů])
SELECT
{[Measures].[# hovorů], [Measures].[# answered]} ON COLUMNS,
CrossJoin([Datum vytvoření.Po dnech].[Rok].[2017], [Dispozice].[Dispozice].Members) ON ROWS
FROM [Hovory]
返回此表:
但我需要这样的事情:
我需要仅对具有维度# hovorů
的{{1}}成员的项目汇总度量ANSWERED
。我想将此作为计算测量值添加,用于计算percantage。
非常感谢。
答案 0 :(得分:1)
我猜测只使用带有 private async void main() {
Console.WriteLine("Main");
Task generatePassTask = new Task(generatePass);
Task loginControllerTask = new Task(loginController);
Task balanceControllerTask = new Task(balanceController);
//Starts delay and waits for completion.
generatePassTask.Start();
await generatePassTask;
loginControllerTask.Start();
await loginControllerTask;
balanceControllerTask.Start();
await balanceControllerTask;
}
private async void loginController() {
Console.WriteLine("loginController");
Task resetDelayTask = new Task(resetDelay);
//Starts delay and waits for completion.
resetDelayTask.Start();
await resetDelayTask;
Task loginTask = new Task(login);
//Starts delay and waits for completion.
loginTask.Start();
await loginTask;
//Calls login method once delay has completed.
//login();
}
private void login() {
Console.WriteLine("login");
if (webBrowser1.Document != null && webBrowser1.Document.GetElementById("login_password") != null)
{
webBrowser1.Document.GetElementById("login_password").SetAttribute("value", pass);
HtmlElementCollection elems = webBrowser1.Document.GetElementsByTagName("Button");
foreach (HtmlElement elem in elems)
{
string htmlStr = elem.InnerHtml;
if (htmlStr != null && htmlStr.Length != 0 && htmlStr.Equals("<i class=\"fa fa-arrow-right text-muted\"></i>"))
{
elem.InvokeMember("Click");
}
}
}
else {
loginController();
}
}
//Called after logout to sync worker and ui before next login.
private static void resetDelay()
{
Console.WriteLine("resetDelay");
Thread.Sleep(1400);
}
分支的iif
太难编码了:
null