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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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