Evenimente
Campionatele Mondiale Power BI DataViz
14 feb., 16 - 31 mar., 16
Cu 4 șanse de a intra, ai putea câștiga un pachet de conferință și ai putea ajunge la Marea Finală LIVE din Las Vegas
Aflați mai multeAcest browser nu mai este acceptat.
Faceți upgrade la Microsoft Edge pentru a profita de cele mai noi funcții, actualizări de securitate și asistență tehnică.
You can use quick measures to quickly and easily perform common, powerful calculations. A quick measure runs a set of Data Analysis Expressions (DAX) commands behind the scenes, then presents the results for you to use in your report. You don't have to write the DAX, it's done for you based on input you provide in a dialog box. There are many available categories of calculations and ways to modify each calculation to fit your needs. Best of all, you can see the DAX that's executed by the quick measure and jump-start or expand your own DAX knowledge.
To create a quick measure in Power BI Desktop, right-click or select the ellipsis ... next to any item in the Fields pane, and choose New quick measure from the menu that appears.
You can also right-click or select the drop-down arrow next to any value in the Values well for an existing visual, and choose New quick measure from the menu.
When you select New quick measure, the Quick measures window appears, letting you choose the calculation you want and the fields to run the calculation against.
Choose the Select a calculation field to see a long list of available quick measures.
The five quick measure calculation types, with their calculations, are:
To submit your ideas about new quick measures you'd like to see, underlying DAX formulas, or other quick measures ideas for consideration, check out the Power BI Ideas page.
Notă
When using SQL Server Analysis Services (SSAS) live connections, some quick measures are available. Power BI Desktop displays only the quick measures that are supported for the version of SSAS you're connecting to. If you're connected to a SSAS live data source and don't see certain quick measures in the list, it's because the SSAS version you're connected to doesn't support the DAX commands used to implement those quick measures.
After you select the calculations and fields you want for your quick measure, choose OK. The new quick measure appears in the Fields pane, and the underlying DAX formula appears in the formula bar.
Let's take a look at a quick measure in action.
The following matrix visual shows a sales table for various products. It's a basic table that includes the sales totals for each category.
With the matrix visual selected, choose the drop-down arrow next to TotalSales in the Values well, and select New quick measure.
In the Quick measures window, under Calculation, select Average per category.
Drag Average Unit Price from the Fields pane into the Base value field. Leave Category in the Category field, and select OK.
When you select OK, several interesting things happen.
The matrix visual has a new column that shows the calculated Average Unit Price average per Category.
The DAX formula for the new quick measure appears in the formula bar. See the next section for more about the DAX formula.
The new quick measure appears selected and highlighted in the Fields pane.
The new quick measure is available to any visual in the report, not just the visual you created it for. The following image shows a quick column chart visual created by using the new quick measure field.
A great advantage of quick measures is that they show you the DAX formula that implements the measure. When you select a quick measure in the Fields pane, the Formula bar appears, showing the DAX formula that Power BI created to implement the measure.
The formula bar not only shows you the formula behind the measure, but more importantly, lets you see how to create the DAX formulas underlying quick measures.
Imagine you need to do a year-over-year calculation, but you're not sure how to structure the DAX formula, or you have no idea where to start. Instead of banging your head on the desk, you can create a quick measure by using the Year-over-year change calculation, and see how it appears in your visual and how the DAX formula works. Then you can either make changes directly to the DAX formula, or create a similar measure that meets your needs and expectations.
You can always delete quick measures from your model if you don't like them by right-clicking or selecting the ... next to the measure and selecting Delete from model. You can also rename a quick measure whatever you like by selecting Rename from the menu.
There are a few considerations and limitations to keep in mind.
Important
DAX statements for quick measures use only commas for argument separators. If your version of Power BI Desktop is in a language that uses commas as decimal separators, quick measures will not work properly.
You can use your own custom date tables with time intelligence quick measures. If you're using an external tabular model, make sure that when the model was built, the primary date column in the table was marked as a date table. For more information, see Specify Mark as Date Table for use with time-intelligence. If you're importing your own date table, make sure to mark it as a date table, as described in Set and use date tables in Power BI Desktop.
Have an idea for a quick measure that isn't already provided? Great! Go to the Power BI Ideas page, and submit your ideas and DAX formulas for quick measures you'd like to see in Power BI Desktop. We'll consider adding them to the quick measures list in a future release.
Other articles of interest:
Evenimente
Campionatele Mondiale Power BI DataViz
14 feb., 16 - 31 mar., 16
Cu 4 șanse de a intra, ai putea câștiga un pachet de conferință și ai putea ajunge la Marea Finală LIVE din Las Vegas
Aflați mai multeInstruire
Modul
Add measures to Power BI Desktop models - Training
In this module, you'll learn how to work with implicit and explicit measures. You'll start by creating simple measures, which summarize a single column or table. Then, you'll create more complex measures based on other measures in the model. Additionally, you'll learn about the similarities of, and differences between, a calculated column and a measure.
Certificare
Certificat Microsoft: Asociat analist de date Power BI - Certifications
Demonstrați metode și cele mai bune practici care se aliniază cu cerințele de afaceri și tehnice pentru modelarea, vizualizarea și analiza datelor cu Microsoft Power BI.