Forum Discussion

apatwal's avatar
apatwal
Helper III
4 years ago
Solved

Conditional columns

Hi,

 

I have a requirement where in I have to show the trend of Revenue and other parameters in graph and table visual.

I have below columns in my dataset

Location, Invoice_Date, CustomerName, Product, Product_description, Revenue, margin, Quantity, Cost, UnitCost, UnitPrice.

 

I have date range from 1st Jan 2020 to 31st Dec 2021.

 

Now, I need to show the trend of revenue and Margin for the year 2020 and 2021 on two different columns in table visual for Revenue (Revenue 2020 and Revenue 2021) and Margin (Margin 2020 and Margin 2021), same needs to be plot in graph.

 

Also, there might be cases where a customer ABC bought and item 123 on multiple dates in both years 2020 and 2021. I need there revenue in different columns.

All the revenues for all dates are in one column, there is no separate date table.

 

Is there any way to achieve this?

 

3 Replies