Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I would like to only show the last month data on a line chart.
The field name and content are "measure_time" and "MM/DD/YYYY hh:mm:ss AM"
Any idea of the expression?
Best & Regards
Gary
Hi
I have created some 4 different charts you can use
PFA
Thanks
Do you have month field in your data? If yes,
Try this:
=SUM({<measure_month={"$(=month(addmonths(max(measure_time),-1)))"}>} measure)
Hi
if you have the date try this
=SUM({<Date={">=$(=monthstart(addmonths(max(Date),-1)))<=$(=monthend(addmonths(max(Date),-1)))"}>} measure)
hope this helps
Thanks
Sorry. I don't have month field in my data
Hi
You can use the date in the expression
just replace the Date with your Date column
and measure with your Measure column
Thanks
I have 3 field: measure_time, measure_point, measure_value
I binding the measure_time to the Dimensions Field of Line Chart
In the Measure Field the syntax shown below:
=sum({<measure_time={">=$(=monthstart(addmonths(max(date),-1)))<=$(=monthend(addmonths(max(date),-1)))"}>} measure_value)
or
=sum({<measure_time={">=$(=monthstart(addmonths(max(measure_time),-1)))<=$(=monthend(addmonths(max(measure_time),-1)))"}>} measure_value)
or
=sum({<Date={">=$(=monthstart(addmonths(max(measure_time),-1)))<=$(=monthend(addmonths(max(measure_time),-1)))"}>} measure_value)
The line chart also no change
I just want to show Dec data.
Thanks
Hi
Can u share the QVF I will see what is actually not working
Thanks
Sure. Here is the QVF and data
Hi
I have created some 4 different charts you can use
PFA
Thanks
Thank You!