Tag Archives: IF

When does SQL Server Cache an execution plan?

By | August 4, 2020

Ever wondered under what circumstances SQL Server cache an execution plan. What is the difference between simple and forced parametrization. What are the disadvantages of plans being cached? Should I recompile a procedure or are there other options. How does plan caching differ between Adhoc queries vs stored procedure. How does single use plans eat… Read More »

Visual Studio – The process cannot access the file because it is being used by another process

By | July 20, 2020

  Severity  Code  Description  Project  File  Line  Suppression State  Error    Cannot delete the file “C:\……t\LoadExcelFiles.ispac”: The process cannot access the file ‘C:\…..LoadExcelFiles.ispac’ because it is being used by another process..     0      The above error common message that we encounter when working on SSIS packages in Visual Studio. The message itself… Read More »

Visual Studio – The process cannot access the file because it is being used by another process

By | July 20, 2020

  Severity  Code  Description  Project  File  Line  Suppression State  Error    Cannot delete the file “C:\……t\LoadExcelFiles.ispac”: The process cannot access the file ‘C:\…..LoadExcelFiles.ispac’ because it is being used by another process..     0      The above error common message that we encounter when working on SSIS packages in Visual Studio. The message itself… Read More »

29 DAX Functions you must know

By | June 16, 2020

PowerBI has been the preferred BI tool for a large number of companies in recent times. As the tools get adopted we have seen a number of reporting scenarios from Basic excel porting to complex Machine Learning models. Regardless of how you plan to utilize PowerBI it is important to learn and understand the DAX… Read More »

PowerBI DAX – VAR

By | June 16, 2020

A very useful way to work with DAX functions is to use VAR. VAR is a form of variable in which results can be stored temporarily without having to create measures and then using them in others. For example you use Var to store the result of a particular group and then use the var… Read More »

PowerBI DAX- USERNAME

By | June 16, 2020

This is a function that may not be used as frequently as it used to be but it is likely you will encounter it in older PowerBI Reports where RLS or row level security was implemented. The function returns the username of the user currently viewing the report. Using this information and mapping it against… Read More »

PowerBI DAX – USERELATIONSHIP

By | June 16, 2020

A common issue faced when working with PowerBI is the limitation of having only one Active relationship between two tables. While this is a not an issues when importing data it can make creating measures a hassle. An example of this scenario could be the use of calendar table for Order Date and Delivery Date.… Read More »

PowerBI DAX- TREATAS

By | June 16, 2020

Once we are able to create virtual tables within PowerBI using Functions such as EVALUATE , CALCULATE TABLE etc it might be required to filter the contents of the virtual table based on certain Input criteria. In such cases we can use the TREATAS function to apply filters to a Virtual or Actual Table as… Read More »

PowerBI DAX- TOTALYTD

By | June 16, 2020

A very useful kind of report is called a cumulative report. Which is based on summarizing data cumulatively. This means we can see the area chart as progressively growing as the year goes by. Charts such as these provide a clear indication of the long term trajectory of the sales and clearly indicates Sales for… Read More »

PowerBI DAX – TOPN

By | June 16, 2020

Another commonly used function is the TOPN function. It is used for both TOP and BOTTOM use cases. In this example to demonstrate the basics we are first going to simply fetch the top 34employees by their employee key. The below Formula shows what this would look like Table = TOPN(4,ALL(‘Dimension Employee’),’Dimension Employee'[Employee Key],ASC) To… Read More »