diff --git a/packages/analytics/addon/components/ca-report-preview.hbs b/packages/analytics/addon/components/ca-report-preview.hbs
index 3bec1abbd..f9e9b570d 100644
--- a/packages/analytics/addon/components/ca-report-preview.hbs
+++ b/packages/analytics/addon/components/ca-report-preview.hbs
@@ -30,7 +30,7 @@
{{#each this.data.value.fields as |row|}}
{{#each row as |entry|}}
-
+ |
{{entry.value}}
|
{{/each}}
@@ -39,7 +39,7 @@
{{#if this.data.value.summary}}
{{#each this.data.value.summary as |summary|}}
-
+ |
{{summary.value}}
|
{{/each}}
diff --git a/packages/analytics/addon/components/ca-report-preview.js b/packages/analytics/addon/components/ca-report-preview.js
index 0ffd33a9f..c126c4e6d 100644
--- a/packages/analytics/addon/components/ca-report-preview.js
+++ b/packages/analytics/addon/components/ca-report-preview.js
@@ -74,4 +74,19 @@ export default class CaReportPreviewComponent extends Component {
);
});
}
+
+ getXLSXType(input) {
+ // Check if it's a number
+ if (!isNaN(input) && input.trim() !== "") {
+ return "n";
+ }
+
+ // Check if it looks like a date and can be parsed as a date
+ if (/^\d{4}-\d{2}-\d{2}$/.test(input) && !isNaN(Date.parse(input))) {
+ return "d";
+ }
+
+ // Default to string
+ return "s";
+ }
}