Help needed with dataview JS table

Hi.
JS is not my ground… And, if I can ask, why you choose JS? You have js knowledge; it’s a more easy language to learn; you need some “extra” functions only available in js (in you queries above all functions are available in DQL); etc.
(you don’t need to answer) :slight_smile:
I’m not sure, but try this: replace where(p => p["bookprogress"] == 100) by where(p => p.bookprogress && p.bookprogress == 100).

EDIT 1: seems that you have other “errors” in your code.
If you need a DQL query…

EDIT 2: Try now

dv.table(["Cover","Title", "Author", "Date", "Series", "Rating____"],
dv.pages("#bookhistorical").where(p => p.bookprogress == 100)
    .sort(p => p.finished)
    .map(p => ["![Cover|90](" + p.cover + ")",
		p.file.link,
		p.Author, 
		p.finished,	   
		p["Series"] ? p["Series"] + " #" + p["number-in-series"] : "N/A",
	    p.Rating 
															  
			]) 
)