Guest User

Untitled

a guest
Jun 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <!-- DataSources -->
  2. <%
  3. date_filter = 5.weeks.ago.strftime('%Y-%m-%d 00:00')
  4.  
  5. query1 = "Date, B, sum(MValue) "
  6. condition1 = "where (MName='Gross Sales' and date > '#{date_filter}') "
  7. grouping1 = "group by Date, B order by Date, B "
  8.  
  9. ds = datasource("ce_data_template", query1+condition1+grouping1)
  10.  
  11. print(ds, :format => :debug)
  12. %>
  13.  
  14. <!-- HTML -->
  15. <% column_chart(ds, :style => "ce_column_chart", :width => '100%', :height => 300) %>
Add Comment
Please, Sign In to add comment