The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello, I am working with Calculation Groups and would like to specify their sort order:
I am trying to work with the "Ordinal" column that is automatically created when a new Calculation Group is created.
As I add new Measures to this group, their values of this Ordinal column default to -1 like so.
I'm unable to update the values of the table, and under Properties on any of the measures, there is nowhere to set the Ordinality that I can find.
Couldn't find anything in the current documentation. Appreciate the assist!
Version: 2.136.1202.0 64-bit (September 2024)
Solved! Go to Solution.
Hi @Dp7
As you've observed, in a newly created calculation group, the Ordinal property is set to -1 by default for each calculation item created.
You can change the ordering of calculation items (which has the effect of changing the Ordinal values) by either:
1. Select the Calculation Items folder in the Model view, and drag/drop the calculation items in the properties pane:
2. Right-clicking a specific calculation item > Move > Up/Down/To top/To bottom:
Once the calculation items have been reordered at least once, they should be assigned Ordinal values 0, 1, 2,...
In Tabular Editor, you can directly edit the Ordinal property of each calculation item.
Regards
@OwenAuger
Brilliant, the Move option worked just as pictured.
Thank you for the great explanation and for even recreating my scenario in your screenshots!
Hi @Dp7
As you've observed, in a newly created calculation group, the Ordinal property is set to -1 by default for each calculation item created.
You can change the ordering of calculation items (which has the effect of changing the Ordinal values) by either:
1. Select the Calculation Items folder in the Model view, and drag/drop the calculation items in the properties pane:
2. Right-clicking a specific calculation item > Move > Up/Down/To top/To bottom:
Once the calculation items have been reordered at least once, they should be assigned Ordinal values 0, 1, 2,...
In Tabular Editor, you can directly edit the Ordinal property of each calculation item.
Regards