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
LucasChaves
Frequent Visitor

Push Dataset With M Script

I'm developing a script to push dataset to Power BI service.
I'm trying to send an M script for creating a dynamic calendar dimension.
Looking at the documentation available at https://docs.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-post-dataset , the Table property has an attribute of type "
ASMashupExpression[]" . AsMashupExpression[] has the attribute "expression".
I didn't find examples, but I tried to send a Script M inside expression.
I did the tests by sending and not sending column definitions and differents ways, and didnt work.

Without AsMashupExpression works.
Has anyone already implemented it and can you tell me if this type of submission to the API is possible?

2 REPLIES 2
lbendlin
Super User
Super User

Are you trying to script a new push dataset, or are you trying to script pushing rows into an existing dataset?

Im trying to script a new push dataset, and one of tables is dynamic (dimCalendar) using M script

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.