Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
vvira1316
Specialist II
Specialist II

Alignment of charts layered on each other works fine in one dashboard but not in other even if the objects have been copied over

Hi,

Looking for help/guidance on following scenario where axes alignment is off ....

I have two charts that I've layered on each other. In one dashboard application I've only records related to CP Doc ID 217242 and in other there are multiple records in the application but only 217242 is selected.

I've included screen shots from both dashboards.

Aligned charts....

PerfectlyAlignedLayers.png

Individual charts

BarChart.png

MarkerChart.png

Axes are not aligned in the charts even though they were copied over from the dashboard they were perfectly aligned.

MisAlignedLayers.png

in the misaligned the first grid line seems to be aligned but following are all off.....

Thanks & Regards,

Vijay

3 Replies
Anonymous
Not applicable

It'd help if you posted the application.

If you copy a chart from one workbook to another and something changes within the chart, it's usually because there's a difference in the data between the two workbooks. The chart will immediately reflect the changes in data as soon as you copy it over. Can you make sure set analysis in the chart isn't ignoring selections, i.e. with {1}?

vvira1316
Specialist II
Specialist II
Author

Hi,

Thanks for the pointer in the reply. I was thinking along the same line of reasoning. Let me check on that, unfortunately, I'm unable to attach the QVW. I'll update on findings and/or additional points that may help.

Regards,

Vijay

vvira1316
Specialist II
Specialist II
Author

I found the reason

it is combination of how I was structuring my data and the formulas for Expression, Bar Offset, and/or Axes Step Min/Max.

Let me explain what happened here using the screenshotsNotAligned.png

Formula for each of those uses Start Date and End Date in some fashion of Min or Max. As seen from screen shot above that End Date does not have value for the last row and that caused alignment due to different overall start and end for two charts (Bar and Symbol)

Once I had made sure that min sequence # will have start date time and max sequence # record will have end date time, the alignment issue went away

Here some formula for reference to explanation above

Following is Bar Offset Formula that I have

date(
if(IsNull(above(Only([Counterparty Document: Document ID]))), Min({<[Counterparty Document: Document ID], [TL Sequence]>}[TL Start Date Time]),
RangeMax(0,Min({<[Counterparty Document: Document ID], [TL Sequence]>}[TL Start Date Time])-
RangeMax(above(Max({<[Counterparty Document: Document ID], [TL Sequence]>}[TL End Date Time]),1,rowno()-1))))
)

Following was Expression for Symbol Chart

=If(GetSelectedCount([Counterparty Document: Document ID]) = 1,

Num(Max({<[Counterparty Document: Document ID]={"$(vGetSelectedCPDocID)"}, [TL Phase or Event]={'Event'}, [TL Sequence]>}[TL End Date Time]),'#.#'),

Num(Max({<[Counterparty Document: Document ID], [TL Phase or Event]={'Event'}, [TL Sequence]>}[TL End Date Time]),'#.#')
)

Following is screen shot after I had made sure that max seq rec will have End Date Time

Aligned.png

Aligned2.png

I hope this will help.

Regards,

Vijay