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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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.

Top Solution Authors
Top Kudoed Authors