TabularEditor-Scripts 项目教程

TabularEditor-Scripts 项目教程

TabularEditor-ScriptsScripts for Tabular Editor 2 & 3. Community driven to make your Tabular Editor experience as fast as possible. 项目地址:https://gitcode.com/gh_mirrors/ta/TabularEditor-Scripts

1、项目的目录结构及介绍

TabularEditor-Scripts 项目的目录结构如下:

TabularEditor-Scripts/
├── LICENSE
├── README.md
├── Advanced/
├── Basic/
├── Intermediate/
└── Tabular Editor 2/

目录介绍

  • LICENSE: 项目许可证文件,采用 MIT 许可证。
  • README.md: 项目说明文件,包含项目的基本信息和使用指南。
  • Advanced/: 高级脚本目录,包含复杂的脚本示例。
  • Basic/: 基础脚本目录,包含简单的脚本示例。
  • Intermediate/: 中级脚本目录,包含中等复杂度的脚本示例。
  • Tabular Editor 2/: 针对 Tabular Editor 2 的脚本目录。

2、项目的启动文件介绍

项目中没有明确的启动文件,因为这是一个脚本集合项目。用户可以根据需要选择并执行特定的脚本文件。每个脚本文件通常包含一个 .csx 文件,用户可以在 Tabular Editor 的“高级脚本”面板中加载并执行这些脚本。

3、项目的配置文件介绍

项目中没有明确的配置文件,因为这是一个脚本集合项目。每个脚本文件通常包含其所需的全部配置和逻辑。用户可以根据脚本文件中的注释和说明进行必要的配置和调整。

例如,一个典型的脚本文件可能包含以下内容:

/*
 * Title: Auto-generate SUM measures from columns
 *
 * Author: Daniel Otykier twitter.com/DOtykier
 *
 * This script when executed will loop through the currently selected columns
 * creating one SUM measure for each column and also hiding the column itself.
 */

// Loop through all currently selected columns:
foreach(var c in Selected.Columns) {
    var newMeasure = c.Table.AddMeasure(
        "Sum of " + c.Name, // Name
        "SUM(" + c.DaxObjectFullName + ")", // DAX expression
        c.DisplayFolder // Display Folder
    );
    // Set the format string on the new measure:
    newMeasure.FormatString = "0.00";
    // Provide some documentation:
    newMeasure.Description = "This measure is the sum of column " + c.DaxObjectFullName;
    // Hide the base column:
    c.IsHidden = true;
}

用户可以根据需要修改脚本中的参数和逻辑,以适应其特定的需求。

TabularEditor-ScriptsScripts for Tabular Editor 2 & 3. Community driven to make your Tabular Editor experience as fast as possible. 项目地址:https://gitcode.com/gh_mirrors/ta/TabularEditor-Scripts

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

顾涓轶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值