Better basic bar charts using Deneb in Power BI

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 22

  • @PHILIPROYBENEDICTLOUIS
    @PHILIPROYBENEDICTLOUIS 2 ปีที่แล้ว

    Thanks for providing Deneb content which is very valuable for any Advanced Power BI developers

  • @christophermajka623
    @christophermajka623 2 ปีที่แล้ว

    Great video Ben - thanks for sharing. Very helpful to see you work through it!

  • @sohailansari9337
    @sohailansari9337 2 ปีที่แล้ว

    Superb explanation its step-by-step.. Great 👌

  • @MuhammadRizwan-tc3zp
    @MuhammadRizwan-tc3zp ปีที่แล้ว

    Thanks brother. Your video helped me a lot. Stay happy.

  • @ivancordova9096
    @ivancordova9096 2 ปีที่แล้ว

    Muchas gracias por otro gran contenido.
    Particularmente me gusta este porque es sobre DENEB.
    Saludos desde Perú.

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว +2

      Muchas gracias. Me alegro de que te haya gustado. Hay muchos más vídeos de Deneb por venir. :)

  • @apbreports
    @apbreports ปีที่แล้ว

    Very insightful. Thanks!

  • @KNP-BI
    @KNP-BI 2 ปีที่แล้ว

    Another great video. Thank you.
    Can you parameterise things like colours and x/y offset for measures and layers so you don't have to retype them?

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว +1

      Hey, this is a great question and I was planning on making a video about it actually. But yes you can. Here is the link to how it is done.
      vega.github.io/vega-lite/docs/parameter.html

  • @DanialWard
    @DanialWard 2 ปีที่แล้ว

    Hi Ben, another great video here! Currently utilising similiar logic, I am wondering though, in Deneb are you able to set one of the bars like in the video to run on a secondary y axis?

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว

      I'm honestly making a video now about how to use the y2, which is how to use a secondary y axis to create something like a bullet chart. I think that's roughly what you mean?

    • @DanialWard
      @DanialWard 2 ปีที่แล้ว

      @@PowerBIFerryTales Thats exactly what I mean! Great minds think alike! :)

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว

      Does this help?
      th-cam.com/video/VdWBo2Ge5Vg/w-d-xo.html

  • @DanialWard
    @DanialWard 2 ปีที่แล้ว

    Another quick question Ben, I followed logic and works fantastic, specifically your way around the legend, however when i add it, it has defaulted to top right of the visual, is there a way i can set it to the top left like yours in the video?

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว +1

      Hi Danial, good point! I forgot to mention I had changed this. If you go to the 'Config' tab, at bottom you will find tthe legend info. Within the brackets, simply add "orient": "top".
      Link to the documentation. ⬇️
      vega.github.io/vega-lite/docs/legend.html#:~:text=value%3A%2018.-,orient,-String

  • @MuhammadRizwan-tc3zp
    @MuhammadRizwan-tc3zp ปีที่แล้ว

    Can you plz help on aligning Legend to Top Let Corner of the Chart in single row. In my chart, the legend is appearing at top right corner in 2 rows. !!!

    • @PowerBIFerryTales
      @PowerBIFerryTales  ปีที่แล้ว

      Hi, sorry I missed this comment!
      This video should have what you're looking for.
      th-cam.com/video/mLr2T_AOjts/w-d-xo.html

  • @DanialWard
    @DanialWard 2 ปีที่แล้ว

    Hi Ben, I am trying to get the offset bar layer to have a color fill based on a measure, so the fill is based on a scale? but only for that layer, coming up short on the correct code so any advise is appreciated! :)

  • @totvabe1
    @totvabe1 2 ปีที่แล้ว

    Great video, Ben !!!
    I'm struggling with the scale.
    In my case one of the fields can be one measure or another depending on a selection (measure with SWITCH). And I want the name of the actually selected measure to appear in the legend ('A' or 'B' and the other 'C)'.
    I've created:
    "transform": [
    {
    "calculate": "datum['CompType'] == 'A' ? 'A' : 'B'",
    "as": "DynamicLegend"
    }
    ]
    And I dont' know how to define the legend. I've tried with:
    "encoding": {
    "color": {
    "datum": "C",
    "scale": {
    "domain": ["C", "expr:" {"DynamicLegend"}],
    "range": ["#AA182C", "#808080"]
    }
    }
    }
    but it is wrong. Do you know how to do it? 🤔
    Thanks!

    • @PowerBIFerryTales
      @PowerBIFerryTales  2 ปีที่แล้ว +1

      Thank you, pleased you enjoyed it. I'll have a look at your question in a couple of days when I'm back home. :)