Good day!
I have a table and would like to apply a code only to 2d row, and all further rows without code.
My current code is below
SELECT *,
(T1.'SC' - "120d")::Date->toLocaleDateString("en-AU") AS 'Verg specials',
FROM T1
when i publish it, all other rows get result invalid date
Hi there,
As this question mentions our Table Filter and Charts for Confluence app, we are happy to introduce its new macro – Table Spreadsheet.
This new macro allows you to work with fully functional Excel spreadsheets right in Confluence. You’ll be able to use cells’ formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit modes.
The Table Spreadsheet macro is available for Cloud and Server/Data Center.
Hi @Ksenia Potroklova ,
Try to use conditions to exclude other rows - for example, here I exclude empty cells:
SELECT *,
CASE WHEN T1.'SC' IS NOT NULL
THEN (T1.'Date' - "120d")::Date->toLocaleDateString("en-AU")
END
AS 'Verg specials'
FROM T1
I also see that your third row is meant to contain text - maybe it will be better to rethink the table structure? The Table Transformer macro works with columns, not with rows. So, you may split your table into two tables, work with the part that contains dates (wrap it into the Table Transformer macro) and then with the help of another outer Table Transformer macro combine the tables back with the help of the standard Merge preset?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.