MoM 2021 Week20 – Power BI
I got to work on the data showing how women/men think they could beat animals with bear hand!
My viz choice was a bullet chart and a bar chart. It’s pretty easy to create a bullet chart in Tableau, but there is not default viz for it in Power BI so I needed to import a custom visual. And that’s one thing that’s amazing about Power BI is that custom visuals are open source, whoever wants to contribute can create visuals on their own!
I didn’t use much of complicated measures or anything, but here’s some code I used to change the color depending on some value:
Conditional Color =
var _diff = [Male - Female]
RETURN
IF( _diff < 0, "#f9b208",
// else
"#4aa96c")