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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Misq
Helper I
Helper I

Measure table in Lakehouse

Hello all,
I have a question regarding creating a measure table in lakehouse. I readed some materials in web and I'm stuck. Below are steps that I did:
1. I've created a measure table via Notebook:
 

 

data = [(1, 'MeasureTable')]
columns = ['ID', 'Col1']
measure_df = spark.createDataFrame(data, columns)
measure_df.show()
spark.sql("DROP TABLE IF EXISTS MeasureTable")
measure_df.write.format("delta").saveAsTable('MeasureTable')

 

2. In SQL Endpoint I added measures to the table, when I'm clicking New Report button, I can see measureTable, properly formatted. But... there is no option to download this report with connection to SQL endpoint (button is inactive).

 
3. When I go back to the lakehouse and I creating new semantic model, my measure table don't show measures that I added before to default semantic model in SQL Endpoint. And it show only table added in the notebook:
+--+----------------------+
| ID|      Col1                     | 
+--+----------------------+
| 1 |      MeasureTable       |
+--+----------------------+
 
Do you know how to handle that case, where you want to have a default measures added to the model?
 
I will be very appreciate for your help and advice 😉
1 REPLY 1
v-zhouwen-msft
Community Support
Community Support

Hi @Misq ,

Regarding your question, you may be able to create the table with Spark Sql.

Creating Managed and External Spark Tables in Fabric Lakehouse | by Aitor Murguzur | Medium

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors