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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pmscorca
Post Patron
Post Patron

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 Patron
Post Patron

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 Patron
Post Patron

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

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors