Tuples
using Skipcheck.Tm1.Client.Services;Cell coordinates, as TM1 binds them: one element path per dimension of the cube, in the cube's order.
// A budget for North, one value per month, written in one request
var budget = new Dictionary<string, int>
{
["Jan"] = 1200,
["Feb"] = 1350,
["Mar"] = 1100,
};
var updates = budget
.Select(month =>
{
var cell = new Dictionary<string, string>
{
["Version"] = "Budget",
["Region"] = "North",
["Month"] = month.Key,
["Measure"] = "Revenue",
};
return CubeUpdatePatch.Builder().BindTuple(Tuples.Of(cell)).Value(month.Value).Build();
})
.ToList();
await tm1.Cells.UpdateCellsAsync("Sales", updates);
Members
Of static | The element paths of a cell, dimension to element, each element in its dimension's own hierarchy, in the order given (which must be the cube's). |
Element static | Dimensions('d')/Hierarchies('h')/Elements('e'). |
Of
staticODataPath[] Of(IReadOnlyDictionary<string, string> tuple)The element paths of a cell, dimension to element, each element in its dimension's own hierarchy, in the order given (which must be the cube's).
Element
staticODataPath Element(string dimension, string hierarchy, string element)Dimensions('d')/Hierarchies('h')/Elements('e').