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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!

Top Solution Authors