Dynamic user defined calculations
One of the neat features in Power BI is the ability for a user to create a calculation at any of the modelling tiers. This example is aimed at the end user who wants to add a dynamic calculation, in this case to calculate an average sale price using a combination of Amount and Quantity.
Create a variance measure
This example demonstrates a method for creating a variance (Budget - Actual) between existing data points.
Create field to display last refresh date and time
This is a code block, entered through the query editor, that will give you a timestamp for the last time a Power BI data set was refreshed.
Power BI Calendar Script
This example is a block of code to create a calculated table in Power BI to generate a calendar based on a date field