How do you check if workbook datetime parameter is not set?

Iron Contributor

Hello,

 

I have setup datetime picker so I can filter results of Resource Graph query for tags values in specific daterange. I want to show all results when parameter is not selected at all ("unset")

I expected that I can use following KQL expression but it's not working since I assume parameter value is not empty. It fails with error message below.

Query is invalid. Please refer to the documentation for the Azure Resource Graph service and fix the error before retrying. todatetime(): function expects 1 argument(s). Filter expression should be Boolean...

 

 Resources
| where type == 'microsoft.compute/virtualmachines'
| where tags['datecreated'] >  coalesce(todatetime({dateCreated:start}),todatetime('2016-11-09T02:53:17.4582226Z') )​
0 Replies