Period comparison measures
Pick a base measure and the comparisons you need, and get ready measures with formats and descriptions that go into your model in one script.
TMDL
Power BI Desktop: open TMDL view (icon on the left), paste the script into a new tab and choose Apply. The measures appear with formats, descriptions and their own folder.
Or add them one at a time: Modeling → New measure, paste the formula, then set the format and description in its properties.
Files are processed only in your browser and are never sent anywhere.