Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

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...

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

In my test,datatable could not use with measure:

Table = DATATABLE( "Type", STRING,
"Measure", STRING,
"Value", DOUBLE ,
{{"xyz", "Measure1","1"}}
)

 

vluwangmsft_0-1653039786954.png

 

Change to  measure:

vluwangmsft_1-1653039819054.png

You could test the below:

Table 2 = SELECTCOLUMNS('Table (2)',"test",'Table (2)'[Measure],"test1","xyz","Measure","Measure")

 

vluwangmsft_2-1653039899219.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

In my test,datatable could not use with measure:

Table = DATATABLE( "Type", STRING,
"Measure", STRING,
"Value", DOUBLE ,
{{"xyz", "Measure1","1"}}
)

 

vluwangmsft_0-1653039786954.png

 

Change to  measure:

vluwangmsft_1-1653039819054.png

You could test the below:

Table 2 = SELECTCOLUMNS('Table (2)',"test",'Table (2)'[Measure],"test1","xyz","Measure","Measure")

 

vluwangmsft_2-1653039899219.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

amitchandak
Super User
Super 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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.