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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pmscorca
Post Prodigy
Post Prodigy

Creating a materialized view in KQL language with only some table columns

Hi,

I need to create a materialized view that must expose only some table columns with a similar KQL code, that goes in error:

.create materialized-view mv_test on table mytable
{
    summarize arg_max(version, *) by id
    | project id, version, column1, column2
}

Moreover, is it possible to return one of this columns converted in a datetime?

Thanks

1 ACCEPTED SOLUTION
pmscorca
Post Prodigy
Post Prodigy

Hi,

I've solved with a such statement:

 

.create materialized-view mv_test on table mytable
{ mytable
     | extend duedatetime = todatetime(duedatetime)
     | project id, version, duedatetime, column1, column2
     | summarize arg_max(version, *) by id
}

 

Thanks

View solution in original post

2 REPLIES 2
pmscorca
Post Prodigy
Post Prodigy

Hi,

I've solved with a such statement:

 

.create materialized-view mv_test on table mytable
{ mytable
     | extend duedatetime = todatetime(duedatetime)
     | project id, version, duedatetime, column1, column2
     | summarize arg_max(version, *) by id
}

 

Thanks

Anonymous
Not applicable

Hi @pmscorca ,

Glad to see you solved your problem yourself, please remember to mark your reply as SOLUTION so that more users can find solutions and learn faster. Thanks!

Best Regards,
Dino Tao

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

Real Time Intelligence in a Day

Real-Time Intelligence in a Day—Free Training

Turn streaming data into instant insights with Microsoft Fabric. Learn to connect live sources, visualize in seconds, and use Copilot + AI for smarter decisions.

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.

Top Kudoed Authors