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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.