In general, it is best to report problems as a list of steps to reproduce. So please describe all your affected tables, relevant fields (their type etc.), and specific steps taken. You can also create a minimal reproducible example and post it here as workspace export.
(Goal: YoPD = YoD + 71, or blank if YoD is blank.)
Test data
Create two authors:
People/Origin A: YoD Author = 1950
People/Origin B: YoD Author = 2000
Create one recording R1
Create two roles linked to R1:
Role 1 → People/Origin A
Role 2 → People/Origin B
Issue
In Recordings, I want the maximum public domain year across linked roles.
Attempt 1:
Create a Rollup field in Recordings over link Roles, target field YoPD, aggregation: Max
Result: error:
“Error with formula: argument number 1 given to function max was of type array but the only usable type for this argument is a list of text, or number, or char, or date, or duration values obtained from a lookup.”
Attempt 2:
Create YoPD lookup in Recordings (Lookup) over link Roles → field YoPD (returns list of numbers)
Create formula field in Recordings:
max(field('YoPD lookup'))
Result: same error as above.
Expected max(...) should return 2071 for R1 (max of 1950+71=2021 and 2000+71=2071).
Actual
“Error with formula: argument number 1 given to function max was of type array but the only usable type for this argument is a list of text, or number, or char, or date, or duration values obtained from a lookup.”
I only get errors when trying.”Error with formula: argument number 1 given to function tonumber was of type number but the only usable type for this argument is text, argument number 2 given to operator + was of type number but there are no possible types usable here.”
Also max within roles is not what I need, since one role has only one author and therefore only one death.It’s within recordings I need the max. And it also only regards authors which have done anything with the lyrics, which means I need to filter the Role field as well:
This works fine for what I try to achieve. I would not like a “1” on everything but the relevant rows, but I find no other way.
In Recordings one recording has several roles. Sometimes an original author (role code : "A”) And later an adapter/editor (role code : “AD”)
But even though these are now numbers, they’re not possible to rollup in recordings.
Does that make sense?
Or is your approach building on text fields being turned into numbers and then “maxed”, rolluped? Is the correct way to write year in text and only after make them numbers, instead of having them as numbers to start with? Does it work with lists? Like the linked lookup in recordings?
Hmm, I’ve used Kuma on empty bases, I understood it so, that if I accidentaly delete a field, there’s no way for you to recover it, therefore I don’t dare to experiment with Kuma on tables and bases that generally work very well.
But regarding the last bit. Is there some reason baserow can’t work with numbers directly when doing a rollup from a lookup?
I tried doing like you did, using a date field instead of number, and then try to convert that to number, but the formula error given to me is that “tonumber” can’t work with anything but texts, so I don’t really understan how it’s possible that you formula works and mine doesn’t when we do identical things….
I’d love to share my base if I can do it confidentially with you, so you can see the problem yourself, cuase it’s just really really strange. According to you documentation Rollup should be done with a lookup and the lookup should containt numbers. Which mine are….
That’s it. Then try the original formula again and use this converted date field instead.
Regarding Kuma:
It would be best if you could rate the answer. If you select , you’ll see a feedback form — please share these details there so our dev team can review them.