         attachments: [attachment]
         text: if @showShareUrl() then query.share_url else ""
       )
-    else if result.fields.dimensions.length == 1 && result.fields.measures.length == 0
+
+    else if dimension_like.length == 1 && measure_like.length == 0
       attachment = _.extend({}, options, {
         fields: [
-          title: result.fields.dimensions[0].label
+          title: dimension_like[0].label
           value: result.data.map((d) ->
-            d[result.fields.dimensions[0].name].rendered
+            d[dimension_like[0].name].rendered
           ).join("\n")
         ]
       })

    @replyContext.looker.storeBlob(imageData, success, error)

  postResult: (query, result, options = {}) ->
    if result.data.length == 0
      if result.errors?.length
        txt = result.errors.map((e) -> "#{e.message}```#{e.message_details}```").join("\n")
        @reply(":warning: #{query.share_url}\n#{txt}")
      else
        @reply("#{query.share_url}\nNo results.")
    else if result.fields.dimensions.length == 0
      attachment = _.extend({}, options, {
        fields: result.fields.measures.map((m) ->
          {title: m.label, value: result.data[0][m.name].rendered, short: true}
        )
      })

        attachments: [attachment]
        text: if @showShareUrl() then query.share_url else ""
      )

  work: ->
    @replyContext.looker.client.get("queries/slug/#{@querySlug}", (query) =>
