We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6
# [ Power BI Visualization ] [ cheatsheet ]
1. Formatting Visuals
● Set visual title: Visual.Title = "Sales by Category"
● Set visual subtitle: Visual.Subtitle = "Fiscal Year 2022" ● Set visual background color: Visual.Background = "#FFFFFF" ● Set visual font color: Visual.FontColor = "#000000" ● Set visual font size: Visual.FontSize = 12 ● Set visual font family: Visual.FontFamily = "Segoe UI" ● Set visual border: Visual.Border = [1, "#000000"] ● Set visual border radius: Visual.BorderRadius = 5 ● Set visual tooltip: Visual.Tooltip = [{"Column1", "Column2"}] ● Set visual x-axis title: Visual.XAxis.Title = "Category" ● Set visual y-axis title: Visual.YAxis.Title = "Sales" ● Set visual x-axis labels: Visual.XAxis.Labels = {"Category1", "Category2", "Category3"} ● Set visual y-axis labels: Visual.YAxis.Labels = {"0", "1000", "2000", "3000"} ● Set visual x-axis label color: Visual.XAxis.LabelColor = "#000000" ● Set visual y-axis label color: Visual.YAxis.LabelColor = "#000000" ● Set visual x-axis label size: Visual.XAxis.LabelSize = 10 ● Set visual y-axis label size: Visual.YAxis.LabelSize = 10 ● Set visual legend position: Visual.Legend.Position = "Right" ● Set visual legend title: Visual.Legend.Title = "Product Category" ● Set visual legend label color: Visual.Legend.LabelColor = "#000000"
2. Data Colors
● Set color scale: Visual.ColorScale = [{"MinColor": "#FF0000", "MaxColor":
"#00FF00"}] ● Set color by category: Visual.ColorByCategory = [{"Category1": "#FF0000", "Category2": "#00FF00", "Category3": "#0000FF"}] ● Set color by value: Visual.ColorByValue = [{"MinValue": 0, "MaxValue": 1000, "MinColor": "#FF0000", "MaxColor": "#00FF00"}] ● Set color by expression: Visual.ColorByExpression = "IF([Sales] > 1000, "#FF0000", "#00FF00")" ● Set color by rule: Visual.ColorByRule = [{"Rule": "[Sales] > 1000", "Color": "#FF0000"}, {"Rule": "[Sales] <= 1000", "Color": "#00FF00"}]
By: Waleed Mousa
● Set color transparency: Visual.ColorTransparency = 50 ● Set color saturation: Visual.ColorSaturation = 100 ● Set color brightness: Visual.ColorBrightness = 50 ● Set color palette: Visual.ColorPalette = ["#FF0000", "#00FF00", "#0000FF"] ● Set color gradient: Visual.ColorGradient = [{"Color": "#FF0000", "Offset": 0}, {"Color": "#00FF00", "Offset": 50}, {"Color": "#0000FF", "Offset": 100}]
3. Conditional Formatting
● Set data bars: Visual.DataBars = [{"MinValue": 0, "MaxValue": 1000,