Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ethel
Creator III
Creator III

Bar chart doesn't work

Hello, I'm trying to create a bar chart in NPrinting using table data

My data looks like this

PeriodYear 1 Name
<PeriodYear> <if('$(=minstring(PercentCount))'= 'Count',num(avg({ $(vPeriodType), PeriodYear= {"=$(=vPriorFiveYear)=$(=vPeriodYear)"},TimeFrame = {'Current Year'}}aggr(sum({$(vPeriodType), PeriodYear= {"=$(=vPriorFiveYear)=$(=vPeriodYear)"},TimeFrame = {'Current Year'}}[# HeadCount]),[%PeriodSKey], Gender)),'###,##0'),num(sum({ $(vPeriodType), PeriodYear={"=$(=vPriorFiveYear)=$(=vPeriodYear)"}, TimeFrame = {'Current Year'}[# HeadCount])/sum(total PeriodYear{$(vPeriodType), PeriodYear={"=$(=vPriorFiveYear)=$(=vPeriodYear)"}, TimeFrame = {'Current Year'}[# HeadCount]),'#,##0.0%'))> <=Gender>

 

My bar chart looks like this

(Columns for each year are apart, not together). I tried to play with powerpoint setting, nothing helps. I think that Npriting treat my data this strange way. Is there anything that can be done? I also tried to use stack chart instead of bar chart, but NPrinting replaces stack chart with bar chart. Thanks a lot in advance! 

Ethel_0-1668614827217.png

That's how it should look like

Ethel_3-1668615575420.png

Thanks a lot in advance!

 

 

Labels (1)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I was never able to pivot data in nprinting ppt chart so the solution for what your requirement is would be to use set analysis for "Male" and "Female" measures.

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

7 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi

  1. Are you using PowerPoint Template?
  2. Screenshot is not from PowerPoint template so where is it from?
  3. Below are the steps I made in Power Point and it works as designed

Now the steps

  1. add some dummy data to the template so series becomes visible
  2. edit series as per your requirements
  3. use GAP Width and Series Overlap to get required results
  4. Once you happy remove previously added records from template

Lech_Miszkiewicz_0-1668676908551.png

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

You have to define the data series in the PowerPoint template

Ruggero_Piccoli_0-1668683395206.png

Select the correct type of native PowerPoint chart, for example, cluster bar chart, and run a preview:

Ruggero_Piccoli_1-1668683499787.png

Refer to https://help.qlik.com/en-US/nprinting/May2022/Content/NPrinting/PowerPointReports/Chart-Native-Table...

Best Regards,

Ruggero

 

 



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Ethel
Creator III
Creator III
Author

Hello, thank you very much for your help.

I'm using power point template. I clicked insert chart->edit data, and changed data in excel to my data. Maybe I should do something else?

Ethel_1-1668687596330.png

 

If add dummy data 

Ethel_4-1668687778734.png

 

 

that's my result, columns are not near each other.

Ethel_5-1668687792955.png

 

Thank you very much again!

Ruggero_Piccoli
Support
Support

Hi,

Could be a problem of the selected type of chart? Try to generate a preview with data from Qlik NPrinting and open that data source of the chart from the generated file. Check that all needed rows are included and that the type of chart is correct. You can also try to edit the chart there with your real data to understand what could be the issue.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Ethel
Creator III
Creator III
Author

Thank you! Data from Nprinting is working fine, but my data gives weird results  unfortunately:( I need bar chart and in Qlik sense bar chart worked fine. I converted existed bar chart to the table and imported that table in NPrinting. v Any other ideas what I can do to make it work?

Thank you very much for your help!!!

Ethel
Creator III
Creator III
Author

I think the difference in your example and mine is that I have only one measure (totals) and two dimensions (gender and year). Is it possible to create this type of chart? Or should I have only one dimension? 

Thanks a lot in advance!

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I was never able to pivot data in nprinting ppt chart so the solution for what your requirement is would be to use set analysis for "Male" and "Female" measures.

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.