How to suppress print of duplicate values?

Getting your data onto paper - or the web - Discussing the reports features of Base
Post Reply
rsctac
Posts: 3
Joined: Mon Mar 07, 2011 6:46 am

How to suppress print of duplicate values?

Post by rsctac »

Using OpenOffice 3.3.0 under Windows 7. Using Base wizard to create a report. Is there any way to suppress the printing of consecutive identical values in a column? Thanks
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to suppress print of duplicate values?

Post by Villeroy »

Group by that field so it prints once on top of its group.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
rudolfo
Volunteer
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: How to suppress print of duplicate values?

Post by rudolfo »

I think rsctac is rather looking for something like

Code: Select all

   CATEGORY  Start    Seconds  In
-----------  -------- ------- ---
          1  19:00:05       7   4
             19:00:35      20   8
             19:30:05       7   7
             19:35:35       2   6
          2  19:00:05       1   4
             19:00:35       2   8
instead of

Code: Select all

   CATEGORY  Start    Seconds  In
-----------  -------- ------- ---
          1  19:00:05       7   4
          1  19:00:35      20   8
          1  19:30:05       7   7
          1  19:35:35       2   6
          2  19:00:05       1   4
          2  19:00:35       2   8
Still interested in the detailed values of the non category columns, while aggregation with group by would hide this. But this way it is easier to spot the point where the category changes from 1 to 2.
ORACLE's SQL*Plus tool has this feature and calls it "break on columns". But I am not aware if it is in any other reporting tool ...
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
rsctac
Posts: 3
Joined: Mon Mar 07, 2011 6:46 am

Re: How to suppress print of duplicate values?

Post by rsctac »

Yes, that's exactly what I want to do. However, would like to do it within the BASE report (generated by wizard). Anyone know how to do it that way? Thanks
OpenOffice 3.3 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to suppress print of duplicate values?

Post by Villeroy »

Use Calc's data pilot as report engine with option Identify categories".
menu:Data>Data Pilot>Start
[X] From registered data source ...
Column fields: CATEGORY, Start
Data fields: Seconds, In
[More Options]
"Identify Categories"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
rsctac
Posts: 3
Joined: Mon Mar 07, 2011 6:46 am

Re: How to suppress print of duplicate values?

Post by rsctac »

Thanks - I tried the CALC DataPilot; it automatically suppresses the duplicate values. However, I haven't found how to get it to allow a few more columns of data; am I missing something?
OpenOffice 3.3 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: How to suppress print of duplicate values?

Post by Villeroy »

Drag the columns you would list in a GROUP BY clause into the row fields section.
Drag the columns you would aggregate by some function SUM, COUNT, AVG, MIN, MAY into the data fields section.
Column fields are the same as row fields but with horizontal orientation.
Page fields are filters.
The current maximum of fields is 8 in total. This will limit will be overcome in version 3.4.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply