Learn Tabular Editor with a Quiz (using a C# Script / Macro!)
A TABULAR EDITOR 3 QUIZ
…run the C# Script to learn and test your knowledge about Tabular Editor 3
SCRIPTING IN TABULAR EDITOR: PRODUCTIVITY UNLEASHED
In recent articles, I have discussed the power of Tabular Editor scripting in improving efficiency and automation of Tabular Modeling tasks. These scripts unlock a wide range of possibilities, including UI-driven experiences. This is helpful, as it lets you request and take user input for use in downstream parts of the script. You can find examples of this in the Tabular Editor Script Library, with select examples highlighted, below:
FIND AND REPLACE IN MEASURE DAX
CREATE DATE TABLE
FIND ALL MEASURES WITH ERRORS / DELETE ALL MEASURES WITH ERRORS
CONFIGURE INCREMENTAL REFRESH
In this article, I share a script that generates a randomized, educational, 10-question quiz about Tabular Editor 3. For each question, you will receive feedback, context and additional references (if available) about the particular topic to which the question pertained. The purpose of this script is to demonstrate how user input can be collected and used in a C# script. Further, I hope this also provides some helpful information and references about Tabular Editor 3, in general.
This article focuses on Tabular Editor 3; any mention of ‘Tabular Editor’ refers to Tabular Editor 3.
THE TABULAR EDITOR QUIZ
If the below script is copied into a Tabular Editor C# Script window, you can run it to play a Quiz about Tabular Editor 3. Ten questions are selected from a pool stored on a public GitHub repository. A web request is sent to retrieve and parse the questions, which are then used in the downstream script to run the quiz for you. Test your knowledge and learn more about what Tabular Editor 3 has to offer!
Additional questions might be added at a later date.
If you have feedback about existing questions, let me know in the comments below, or by submitting a PR to the public GitHub repository. This was thrown together very quickly,
Enjoy!
Notes & Limitations:
- This script is not an official product nor endorsed by any official entity.
- This was a fun project to try and make an educational Tabular Editor quiz in a weekend.
- The script is provided as-is without warranty or guarantees. It has not been tested on Tabular Editor 2.
TO CONCLUDE
Tabular Editor scripting is incredibly powerful. You can leverage the available libraries and methods in Tabular Editor to interact with the model, while also leveraging the power of the C# language to do more sophisticated operations. In this exercise, I attempted to create an educational Tabular Editor quiz to help you learn more about Tabular Editor.
Have fun playing the Quiz!
Try for a new high score!
Read more about Tabular Editor, for example: