Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
i need to sort the pivot table by a column that is a Measure but it doesn't allow me to do it:
How can I sort by this column (Risk Level) ?
Solved! Go to Solution.
You need to sort by column in the Power Pivot section. Measures are not columns, they just really float in the model. While they are stored in tables, they are not really part of the table and can be moved to other tables with no conseqeuence. It is why when you refer to a measure in another measure, you don't use the table name. Measures do not have a list of values in them. The measure is calculated each time it is encountered in the visual or pivot table based on the filter context. So there is nothing for the DAX engine to sort by.
You need to either:
In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingYou need to sort by column in the Power Pivot section. Measures are not columns, they just really float in the model. While they are stored in tables, they are not really part of the table and can be moved to other tables with no conseqeuence. It is why when you refer to a measure in another measure, you don't use the table name. Measures do not have a list of values in them. The measure is calculated each time it is encountered in the visual or pivot table based on the filter context. So there is nothing for the DAX engine to sort by.
You need to either:
In general, try to avoid calculated columns. There are times to use them, but it is rare. Getting data out of the source system, creating columns in Power Query, or DAX Measures are usually preferred to calculated columns. See these references:
Calculated Columns vs Measures in DAX
Calculated Columns and Measures in DAX
Storage differences between calculated columns and calculated tables
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCovering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |