Finds columns that contain <calculation>
nodes and returns metadata and
formulas, with a heuristic flag for table calculations.
Value
A tibble with columns:
- datasource
Datasource name.
- name
User-visible caption or cleaned internal name.
- tableau_internal_name
Internal Tableau name (often bracketed).
- datatype
Tableau datatype.
- role
Tableau role.
- formula
Calculation formula string.
- calc_class
Tableau calc class (often
"tableau"
).- is_table_calc
Heuristic flag for table calcs (e.g.,
WINDOW_
,LOOKUP
).- table
Raw table reference.
- table_clean
Cleaned table name.
Examples
if (FALSE) { # \dontrun{
xml <- xml2::read_xml("inst/extdata/sample.twb")
calc <- extract_calculated_fields(xml)
} # }