-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Microsoft Power BI Cookbook
By :

Power BI Desktop is the primary tool used to develop the visual and analytical content that is then deployed and collaborated on in the Power BI service, embedded in other applications and portals, or even shared on the public internet. Although Power BI Desktop runs as a single application, it includes three tightly integrated components with their own options and settings:
Configuring and leveraging these capabilities; in addition to advanced analytics and customization features such as R, Python, mobile layout, and natural language queries, makes it possible to build robust and elegant BI and analytics solutions.
Most organizations restrict the ability of employees to install software such as Power BI Desktop on their corporate devices. These organizations typically define a policy and process to push a particular version of Power BI Desktop to all user devices or certain groups of users, thus avoiding compatibility issues and ensuring users have access to recent features.
There are actually three different versions of the Power BI Desktop application, as follows:
The preferred method of installation is by using the Microsoft Store app. In order to install Power BI Desktop from the Microsoft Store, follow these steps:
It is important to make sure that you get the Power BI Desktop app and not just the Power BI app. The Power BI app is for viewing reports published to the Power BI service only.
Figure 1.1: The Power BI Desktop app in the Microsoft Store
Power BI Desktop is now installed, and you are ready to start leveraging this powerful tool for BI.
Power BI Desktop supports a rich set of configuration options both for the currently open file and all instances of Power BI Desktop on the given device. These options control the availability of the preview and end user features and define default behaviors’ resource usage, security, and privacy/isolation of data sources.
Regardless of the version of Power BI Desktop that is installed, these options are available by using the File menu in the ribbon, selecting Options and settings, and then Options, as shown in Figure 1.2.
Figure 1.2: Power BI Desktop Options and settings
Selecting Options brings up the Options window, displayed in Figure 1.3.
Figure 1.3: Power BI Desktop Options (February 2021)
GLOBAL options are applied to all Power BI Desktop files created or accessed by the user, while CURRENT FILE options must be defined for each Power BI Desktop file. The following steps are recommended for GLOBAL options:
Figure 1.4: Global Data Load options
In addition, under the Time intelligence heading shown in Figure 1.4, consider turning off Auto date/time for new files. While it is perhaps convenient to have out-of-the-box calendar hierarchy functionality for date columns, this can also significantly increase the size of a data model, and it’s strongly recommended to utilize a common date dimension table, preferably from a corporate data warehouse source. Finally, under the Type Detection heading, it is recommended that you choose the Never detect column types and headers for unstructured sources option. The default detection of column types from unstructured sources, such as text or Excel files, will create a hardcoded dependency on the column names in the source file. Additionally, this default transformation will be applied prior to any filter expression and, thus, can require more time and resources to perform the refresh.
Figure 1.5: Power Query Editor Layout settings
Figure 1.6: Security option for Native Database Queries
Optionally, set Show security warning when adding a custom visual to a report as well. Custom visuals can be divided into three categories, as follows:
Certified custom visuals have been thoroughly tested for safety to ensure that the visuals do not access external services or resources, and that they follow secure coding practices. Uncertified visuals available in AppSource have been through a validation process, although there is no guarantee that all code paths have been tested or that no external services or resources are accessed. Third-party visuals not available in AppSource should be used with caution, and it is recommended that organizations establish policies and procedures regarding their use.
Figure 1.9: Preview features available with the October 2023 release of Power BI Desktop
Also, note that you can disable Auto date/time here on an individual file basis if you did not disable this option at a GLOBAL level.
Figure 1.10: Current File Data Load options
There are options for developing and editing Power BI reports, models, and source queries within the Power BI service. However, these web service experiences generally offer only a limited subset of the functionality of the dedicated client applications. Additionally, files created in Power BI Desktop and other client tools can be stored and managed with version control systems. For these reasons, it’s currently recommended to limit web service development to only those artifacts which do not have a dedicated client app such as dataflows.
For a variety of reasons, it may not be possible to install and use the Microsoft Store app version of Power BI Desktop. This may be because of an older version of Windows being run, corporate policies, a desire to use the 32-bit version of Power BI Desktop (the Microsoft Store app is 64-bit only), or you may be working with an on-premises version of Power BI Report Server. In these cases, you can download an executable installer (an .EXE
file). To install the EXE version, follow these steps:
Figure 1.11: Download the executable installer version using Advanced download options
PBIDesktopSetup_x64.exe
) or the 32-bit version (PBIDesktopSetup.exe
), and then click the Next button.If you are using Power BI Report Server (on-premises), you need to download the corresponding version of Power BI Desktop optimized for Report Server (the RS version). Updates for Power BI Report Server come out quarterly, and there is a specific version of Power BI Desktop released simultaneously that is optimized to work with each quarterly version. The installation is the same as the executable installer (EXE) version. However, to find the download for the RS version, follow these steps:
Figure 1.12: Download the RS version using Advanced download options
After this, the instructions are the same as the executable installer version just covered. Pick up the installation steps from step 3.
For additional information on the topics covered in this recipe, refer to the following links:
Change the font size
Change margin width
Change background colour