     else if query.vis_config?.type == "single_value"
       field = measure_like[0] || dimension_like[0]
       share = if @showShareUrl() then "\n#{query.share_url}" else ""
-      text = "*#{result.data[0][field.name].rendered}*#{share}"
+      text = "*#{renderField(field, result.data[0])}*#{share}"
       @reply(text)
+
     else if result.data.length == 1
       attachment = _.extend({}, options, {
         fields: renderableFields.map((m) ->
-          {title: m.label, value: result.data[0][m.name].rendered, short: true}
+          {title: m.label, value: renderField(m, result.data[0]), short: true}
         )
       })
       @reply(


    renderableFields = dimension_like.concat(measure_like)

    if result.pivots
      @reply("#{query.share_url}\n _Can't currently display tables with pivots in Slack._")


        fields: [
          title: renderableFields.map((f) -> f.label).join(" – ")
          value: result.data.map((d) ->
            renderableFields.map((f) -> renderField(f, d)).join(" – ")
          ).join("\n")
        ]
      })
