Can apex charts line graphs ignore zero or empty values? - apexcharts

i am using apex charts for a line chart pulling through from form submissions. I have 30 values in the data series and 30 items in the x axis categories which correspond to the created_at dates for each data value. Works fine when there is data for date but when as often happens there is no submission for a date the graph line shoots to zero and the graph looks crap. Any suggestions on how to ignore zero values? Thanks.

Related

How to forecast in Power BI using DAX

I have a chart in excel I wish to replicate in PBI.
My Excel chart is a bar chart dated axis with 2 series, running up march, but with data only up until now.
Each bar series has a trendline, which forecasts a trend up to the end of the financial year.
In power BI I have tried to replicate, but I cannot seem to add 'forecast' from the analytics tab unless my chart is a line graph.
So I now have 2 line series in a chart like so:
I have added trendline to both but there is no option to add the forecast line unless I only have 1 data series.
As I've removed a series I can now toggle on the forecast line in the analytics tab.
So I now have 1 line series in my line graph like so:
I actually need to have the data and the corresponding forecast for both data series, so I would have series 1 & 2 plotted like above, on the same graph together.
Is there a way to do this on the analytics tab??
If not, how should I go about it? I was thinking I could use DAX to forecast until March 2023 instead and then drag the line into the line graph and format it to dashed?
Thanks
Here is some sample data step by step for what i'm looking for (very simple thing to do in excel!):
This is the same data, pivoted with the 2 series mapped out on a line graph, and trendline added for each:
I just want to be able to show a trendline extending and forecasting forward, past the months I already have like I have done in Excel.
Yeah i think here your best solution would be to use the "what if" parameter in Dax to get the result you need
For a forecasting line to be performed on a line chart, Below requirements should be met. Otherwise You can't see this option on the analytics tab:
You need to change your datasets, and datatypes accordingly.
The last one is especially valid for you, because there is not a one-day period between your data values, in fact monthly organized.

How can I display a chart when two different time formats are in Google sheet table

The table in this spreadsheet has Start time (B3:B6), End time (D3:D6) and Total time (C3:C6). Total time is a length of hours, so its unit should not be AM/PM. But when I insert a chart with the Total time formatted without AM/PM displayed, the formatting of the X-Axis starts to include a date (12/29/1899...). Can this be corrected through chart settings or via a formula?
Toggling throught the formatting of C4:C6 changes the display back and forth on the Chart.
The shared spreadsheet is here.
Another related question to customizing the time value is here.

Charts in Oracle APEX display group as label

As mentioned in the Title im creating a Webapplication with Oracle APEX and my Charts are showing Group (im German so on my charts it shows "Gruppe") instead of the selected Labels.
First few labels are correct but the it'll take Group 6 for example.
Are you seeing x-axis labels like Gruppe x?
The Reason?
When the number of data points for a series is higher than the number of x-axis labels being rendered.
What to do?
Please run the SQL query in SQL Workshop, and identify any duplicate entries for a given x-axis label. Probably, you will need to update the SQL query, to avoid returning duplicate data.

PowerBI: Last 3 Non Blank Values from column

I have a table where I get the status of the employees tasks day by day.
As in below image I get the values(Confidential, so just entered dummy data).
Then I did unpivoted the dates column and made a copy of that and split with space so that I can get the date value.
Here I would like to show the last 3 commented values in a table visualization for each task.
Like as in above image, if the 5/31/2017 value is not available, then it should get the values of 5/29/2017 plan, 5/29/2017 actual, 5/30/2017 plan values i.e nothing but the last 3 non blank values.
Any suggestions please.
Mohan V
I think i got the solution.
I did mentioned in Top N filtering of visual level filter of fields.
And it worked for me.
Thanks for the hint #user5226582

How to add a text to tool-tips

I have two columns (EBELN - Data Type is Text), (MATKL - Data Type is Text). I want to add them to tool-tips but it is shown as count.
How can I show it as text?
The trick to remember here is that your chart is aggregating data. In other words, for a single date (BEDAT), there may be many MENGE values that are either being summed or averaged or counted.
To create a text tooltip, you can't drag in a text column because, while 3 MENGE values can be easily summed, 3 corresponding tooltip values can't be summed.
What you need to do is create a measure that calculates the text based on the aggregated MENGE values. For example:
Text Tooltip = IF(SUM(Sheet1[MENGE])>100,"This is excellent","This is terrible")
You can then drag that text measure into the tooltip field (because you've said exactly what you want the text to be regardless of whether you've got one MENGE value, or 3, or 300 for a single BEDAT).
There's more information and code samples in the Power BI forums, for example here: https://community.powerbi.com/t5/Desktop/How-can-I-make-Tool-tips-display-text-instead-of-count/td-p/44582
Dustin Ryan also has a good blog post on this here: https://sqldusty.com/2016/06/29/5-more-power-bi-tips/