An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
@$@chin thank you for the question and providing additional details.
The iff() function cannot be used in this case as the "then" and "else" parameters requires a scalar datatype (or inbuilt data type like numbers, string etc.), The provided type is not evaluated which means "render timechart" will not work.
For your requirement, you could simply use the query. If there are no data available to plot anything, by default, the pinned visual on Azure dashboard will show "No data for the given query" (which cannot be customized at the moment):
Hope this helps.
If the answer did not help, please add more context/follow-up question for it. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.