Skip to main content
Solved

Custom Filed Calculation || Average license consumption (Year Till Date )

  • February 11, 2025
  • 4 replies
  • 15 views

yadavmanjeet65
Forum|alt.badge.img+2

I am trying to get a view of AVG consumption till date login I had in mind was totaling the license consumption followed by division with bays calculated via time difference between oldest timestamp vs now.

But ending up with the errors "The argument for "min" must be a Number or Number List, but a Date was given"

Custom Expression used:
sum(${ingestion_metrics.total_size_bytes_GiB})/ diff_days(min(${ingestion_metrics.timestamp_date}),now())

 

Best answer by AymanC

@AymanC The suggested expressions threw below error

<Field "ingestion_metrics.min_start_time" either does not exist in the current query or is a measure.>

 

 

 


Hi @yadavmanjeet65,

Add the following field measure to your visualization.



Kind Regards,
Ayman

4 replies

AymanC
Forum|alt.badge.img+13
  • Bronze 5
  • February 11, 2025

Hi @yadavmanjeet65,

How about utilising the measure 'Min Start Time (Ingestio Metrics Min Start Time)', and then using the below expression:

sum(${ingestion_metrics.total_size_bytes_GiB}) / diff_days(${ingestion_metrics.min_start_time}, now())


Kind Regards,

Ayman


yadavmanjeet65
Forum|alt.badge.img+2
  • Author
  • Bronze 1
  • February 11, 2025

Hi @yadavmanjeet65,

How about utilising the measure 'Min Start Time (Ingestio Metrics Min Start Time)', and then using the below expression:

sum(${ingestion_metrics.total_size_bytes_GiB}) / diff_days(${ingestion_metrics.min_start_time}, now())


Kind Regards,

Ayman


@AymanC The suggested expressions threw below error

<Field "ingestion_metrics.min_start_time" either does not exist in the current query or is a measure.>

 

 

 


AymanC
Forum|alt.badge.img+13
  • Bronze 5
  • Answer
  • February 11, 2025

@AymanC The suggested expressions threw below error

<Field "ingestion_metrics.min_start_time" either does not exist in the current query or is a measure.>

 

 

 


Hi @yadavmanjeet65,

Add the following field measure to your visualization.



Kind Regards,
Ayman


yadavmanjeet65
Forum|alt.badge.img+2
  • Author
  • Bronze 1
  • February 13, 2025

Hi @yadavmanjeet65,

Add the following field measure to your visualization.



Kind Regards,
Ayman


Thanks, AymanC..

It worked well.