Forum Discussion
How to create calculated table with MeasureName and MeasureValue?
I have a model, with around 20 measures created.
I am trying to create a calculated table, to just display a list of measures:
col1, Measure, Value.
I am doing
=DATATABLE( "Type", STRING,
"Measure", STRING,
"Value", DOUBLE.
{'xyz', 'Measure1', Measure1}
)
But it doesnt seem to work...
Hi Anonymous ,
In my test,datatable could not use with measure:
Table = DATATABLE( "Type", STRING, "Measure", STRING, "Value", DOUBLE , {{"xyz", "Measure1","1"}} )Change to measure:
You could test the below:
Table 2 = SELECTCOLUMNS('Table (2)',"test",'Table (2)'[Measure],"test1","xyz","Measure","Measure")Did I answer your question? Mark my post as a solution!
Best RegardsLucien
2 Replies
- amitchandakSuper User
Anonymous , try like
=DATATABLE( "Type", STRING,
"Measure", STRING,
"Value", DOUBLE ,
{"xyz", "Measure1", [Measure1]}
)I would like to explore the calculation group. This might be static
Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
- v-luwang-msftCommunity Support
Hi Anonymous ,
In my test,datatable could not use with measure:
Table = DATATABLE( "Type", STRING, "Measure", STRING, "Value", DOUBLE , {{"xyz", "Measure1","1"}} )Change to measure:
You could test the below:
Table 2 = SELECTCOLUMNS('Table (2)',"test",'Table (2)'[Measure],"test1","xyz","Measure","Measure")Did I answer your question? Mark my post as a solution!
Best RegardsLucien