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ă.
Most of the time, you create tables by importing data into your model from an external data source. But calculated tables let you add new tables based on data you loaded into the model. Instead of querying and loading values into your new table's columns from a data source, you create a Data Analysis Expressions (DAX) formula to define the table's values.
DAX is a formula language for working with relational data, like in Power BI Desktop. DAX includes a library of over 200 functions, operators, and constructs, providing immense flexibility in creating formulas to calculate results for just about any data analysis need. Calculated tables are best for intermediate calculations and data you want to store as part of the model, rather than calculating on the fly or as query results. For example, you might choose to union or cross join two existing tables.
Just like other Power BI Desktop tables, calculated tables can have relationships with other tables. Calculated table columns have data types, formatting, and can belong to a data category. You can name your columns whatever you want, and add them to report visualizations just like other fields. Calculated tables are recalculated if any of the tables they pull data from are refreshed or updated. If the table uses data from DirectQuery, calculated tables aren't refreshed. In the case with DirectQuery, the table will only reflect the changes after the semantic model is refreshed. If a table needs to use DirectQuery, it's best to have the calculated table in DirectQuery as well.
You create calculated tables by using the New table feature in Report View, Table View, or Model View of Power BI Desktop.
For example, imagine you're a personnel manager who has a table of Northwest Employees and another table of Southwest Employees. You want to combine the two tables into a single table called Western Region Employees.
Western Region Employees = UNION('Northwest Employees', 'Southwest Employees')
A new table named Western Region Employees is created, and appears just like any other table in the Fields pane. You can create relationships to other tables, add measures and calculated columns, and add the fields to reports just like with any other table.
You can define a calculated table by any DAX expression that returns a table, including a simple reference to another table. For example:
New Western Region Employees = 'Western Region Employees'
This article provides only a quick introduction to calculated tables. You can use calculated tables with DAX to solve many analytical problems. Here are some of the more common DAX table functions you might use:
See the DAX Function Reference for these and other DAX functions that return tables.
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 calculated tables and columns to Power BI Desktop models - Training
By the end of this module, you'll be able to add calculated tables and calculated columns to your semantic model. You'll also be able to describe row context, which is used to evaluated calculated column formulas. Because it's possible to add columns to a table by using Power Query, you'll also learn when it's best to create calculated columns instead of Power Query custom columns.
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.