Forum

This content is now out of date.

Visit Our Community

Date Dimensions

Hi,

I have changed a metric date field to a dimension in the view and selected the output format as Month.

This works fine, but it is causing issues in a report that I am trying to create that needs to sum transactions by month. I get duplicate rows that seem to represent each different date value.

The format of the report is as follows:


Forum image




This causes an issue in filtering if I simply want to select a specific month:


Forum image



And in the results I cannot seem to suppress duplicates on the month field:



Forum image




And the data does not seem to be accepted on charts:


Forum image



Any ideas on how we can use the date field so that I simply get a single sum per month??

Patrick
Hi Patrick

The reason your report is displaying multiple rows for each month is because the underlying data is still a date field and is displaying a row for each unique date.

To achieve what you trying to do, you could convert your date column to the month number using the Date Hierarchy month template, and display the month name using an Org Ref Code.

At Step 2 of your View Builder, add the month function to you available fields and assign the Date column for the function to be based on.
Forum image

Format the new field using an Org Ref Code, you could pre-populate the values from your resultset.
Forum image

Edit the Month names and the sort order as follows
Forum image


This should give you the results you are after and display correctly in you chart
Forum image

Please let me know if this is what you were looking for

Regards,
Stephen
Thanks Stephen,

That has resolved very easily!

Patrick