Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:00 PM   #1
fracas
Junior Member
fracas began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2025
Location: Italy
Device: Kobo Clara HD, Kobo Libra H2O, Kobo Libra Colour
Composite column showing books read over the years in the tags browser

I'm trying to set up a new column built from other columns (shown in tags browser) that returns the year I finished reading a book. This column must check that the "#complete" column is 100% and must transform the end-of-read date in the "#read" column (e.g., 11 nov 2025) to just the year (2025). However, for books with no end-of-read date but 100% read, it should return a text like: "Read in paperback or on another eReader."

The result I'd like in tags browser is something like this:

Books read ... 100
... ... 2022 ... . 50
... ... 2023 ... . 20
... ... 2024 ... . 15
... ... 2025 ... . 15

Can you help me?
Thanks.

I'm Italian, sorry for my English.

Last edited by fracas; Yesterday at 02:04 PM. Reason: Small errors in capitalization
fracas is offline   Reply With Quote
Old Yesterday, 04:49 PM   #2
Lys
Groupie
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 179
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
The code should be something like this:


Code:
program:

if $#complete  == '100' then
    if $#read == '' then "Read in paperback or on another eReader."
else 
    format_date(raw_field('#read'), 'yyyy')
fi
fi
Where if custom column "complete" is 100, you are evaluating read column, and if read column is blank, it returns the text, otherwise it returns the year.
Lys is offline   Reply With Quote
Advert
Old Yesterday, 06:35 PM   #3
fracas
Junior Member
fracas began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2025
Location: Italy
Device: Kobo Clara HD, Kobo Libra H2O, Kobo Libra Colour
Thanks a million, Lys!
It works, that's exactly what I wanted.
(I just changed '100' to '100%'.)
Thanks again.
fracas is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Composite Two questions: Column for Certain Tags & Chapter Numbers chicleeblair Library Management 2 07-05-2023 06:09 PM
Feature?/Help request: Sorting composite column by a different column's value isarl Library Management 15 04-26-2023 06:58 AM
Not all .mobi books showing in Format column Alcohol Library Management 11 06-17-2017 08:02 PM
Tags not showing in browser Rellwood Calibre 2 05-31-2017 02:32 PM
Using Tag browser to see books with two or more tags BeeTee-Ess Calibre 6 04-13-2012 03:29 AM


All times are GMT -4. The time now is 08:45 PM.


MobileRead.com is a privately owned, operated and funded community.