How To Add New Measure In Power Bi

How to Add a New Measure in Power BI

In Power BI, a measure is a calculation or aggregation based on the data in your dataset. Measures are used to perform various calculations, such as sums, averages, counts, and percentages, which can provide valuable insights into your data. Here’s a step-by-step guide on how to add a new measure in Power BI:

  1. Open Power BI Desktop and load your data into the report.
  2. Click on the “Fields” pane on the right-hand side of the screen to view the list of available fields in your dataset.
  3. Locate the table or column for which you want to create a measure.
  4. Right-click on the table or column and select “New Measure” from the context menu.
  5. A formula bar will appear at the top of the screen, allowing you to enter the formula for your measure.
  6. Type in a suitable name for your measure and then enter the formula using DAX (Data Analysis Expressions) syntax.
  7. Press Enter to apply the measure to your dataset.
  8. The new measure will now appear in the “Fields” pane under the corresponding table or column.
  9. You can drag and drop the measure onto a visual or use it in calculations within other measures.

Here’s an example to illustrate the process:

Let’s say you have a dataset containing product sales data with columns like “Product Name,” “Quantity Sold,” and “Sales Amount.”

To create a new measure for calculating the total sales amount, you can follow these steps:

  1. Right-click on the “Sales Amount” column and select “New Measure.”
  2. In the formula bar, enter the following formula: Total Sales = SUM('Table Name'[Sales Amount])
  3. Press Enter to apply the measure.
  4. The new measure “Total Sales” will now be available in the “Fields” pane.
  5. You can use this measure in visualizations to display the total sales amount.

By adding new measures, you can unlock the full potential of your data and gain deeper insights into your business.

Similar post

Leave a comment