To get the current Week data I started with defining experession as Current week=SELECTEDMEASURE() and then applying a filter on the visual of the current week. I didnt reference any measure in Tabular Editor because it is not the best practice. Time Intelligence Calculation Group Creation. The second one uses the SQLNCLI provider, which is available on Microsoft-hosted build agents on Azure DevOps, and reads credentials and server/database names from environment variables, making the script useful for integration in Azure Pipeliens. Explainable AI Using Python Artificial Intelligence Model Explanations Using Python-based Libraries, . In my example, the previous month is 0, which means it will be the first item on the list. Returns the last date in the current context for the specified column of dates. We have Prior Year, Prior Year over Year, and Prior Year over Year % Difference for Reseller Sales. And of course, I can leverage the Calculation Groups in other Power BI visualizations as well: Calculation Groups are a very powerful yet easy to use tool to improve usability, provide consistency, and speed up the development process. This is probably not going to be the way that most of us access the scripts. This same measure was used in the previous quarter sales measure. Community driven to make your Tabular Editor experience as fast as possible. You can watch the full video of this tutorial at the bottom of this blog. Examples include comparing: Same period prior month, quarter, year etc. That is, names do not contain any spaces and individual words start with a capital letter. This has been addressed as explained below. Welcome! Select your version in the navigation bar at the top of the screen for product specific documentation. This snippet uses the