Power up Your Analytics Using Visual Calculations in Power BI
Yasser A. Rahman
Data Analytics Instructor @ Arab Academy | Power BI, SQL, Tableau, Python, R |Data Analytics Instructor @ CLS | Data Analytics Instructor @ DEPI
Unleashing the Power of Visual Analytics in Power BI
A new feature under preview has been released in Power BI Feb 2024 update. This long waited feature was about what is known as Table Calculations in the context of data analytics.
Visual Calculations
This kind of calculations take place in a virtual table environment. It relies completely on the visualized data in a table or a matrix without interacting with the underlying data nor the data model. They are mainly used with 'Table' and 'Matrix' visuals to perform calculations like:
These types of calculations were performed previously using some DAX function. Which in turn mean that they were calculated using both the data model and the underlying data.
With the introduction of this new feature, you can implement such calculations very easily on top of the data model and underlying data.
Advantages of Visual Calculations
Visual calculations allow you to create DAX formulas directly within a visual element in your Power BI report. This offers several advantages:
Using Visual Calculations
Here's how to create and use visual calculations in Power BI Desktop (currently in preview mode):
领英推荐
Example
Here in the below table, we need to add a moving average column:
to do so, we right click on the visual and select 'New Calculation'
Then, a calculation window will pop up as shown below:
You can write a DAX formula in the formula bar or you can click on fx icon to open some ready made formulas as shown below:
In this example, we shall select Moving Average to perform the required calculation.
You need to enter the required parameters like [Field], and WindowSize.
Then you click apply.