PowerBI, Conditional Formatting for Stacked Column Chart - powerbi

I'm a geologist and trying to create a "Stratigraphic Column" to visualize the progress of Drilling Rig and I realized that Stacked Column Chart is suitable for that visualization.
Everything is perfect expect colors. Every lithology has their own color but PowerBI assign random colros to them. There is no any "Conditional Formatting" button in chart properties. That project is very critical for me, is there any code for that or is there any other tool to create something like Stratigraphic Column in PowerBI?
Thats what I want to create similar;
This is my final progress in PowerBI;
This is databse where I get data for chart;

Check if "Sankey Chart" helps.
As I see, there is a Source and Destination.
https://powerbi.microsoft.com/en-us/blog/visual-awesomeness-unlocked-sankey-diagram/

Related

In Power Bi, how do I show a second value label in a stacked column chart?

I've only been able to accomplish this with a tooltip, but I need to paste the final viz into PowerPoint, so hovering is not an option for the audience.
You can't with native visuals. There may possibly be a way with calculation groups and custom format strings but it would be a hack. If you want more control over your visualisations, I can recommend Deneb.

Not able to see value option in Power BI

I am trying to create a stacked column chart in Power BI desktop. Once I drag the stacked column chart from the visualization, it only shows options for X-Axis, Y-Axis, Legend, Small multiples, Tooltips.
But the values seems to be missing from the above list.
Any pointers will help.
Thanks
Y-Axis is the new Value field.

Sportfire to Power BI Graph

I am trying to replicate a report created in Spotfire into Power BI. I am stuck with one of the visuals. Any work around or idea will be appreciated.
I tried creating this chart in Power BI into a stacked bar chart viz but that does not help.
I'd use two stacked bar charts. Add some text boxes if you need them. Use the 'Lock Objects' on the format page to stop things from moving around. Lock and hide the filter pane if you need to. Put a nice background behind it to create am impression.

How to create custom legends in Power bi?

I just need to move my legends in top left corner. But there is no option for that.
So is any way I can create maybe a table with one column color shape and the other column the description?
Something like that:
And then just use it as Legends for the chart?
Depending on your visual you have under the format tab a legend option. For example if you use a pie chart you can toggle the legend on or off. Also you can position the legend (top, top left, bottom, etc...).
The second way is to use a custom visual with your desired needs.
And the third way is, like you already stated, a table which acts as legend. Either you enter your legend text in a separate table manually or you use a query. For example a distinct count to get the unique values.

Apply different different data colors to different charts in power bi theme creation

I am using PowerBi February release.
I am trying to create custom theme (.json file). I want to have different data colors for different charts and not the global/common data colors for all charts.
Suppose for line chart colors are "red,green,blue" then for pie chart colors are different, lets say "yellow,grey,purple".
Can you please suggest how to create a theme based on above requirement.
Thanks in advance
Currently, this is not possible to create a custom theme that pre-assigns each color to a bar or piece of a pie chart. You can for KPI and some of the other visuals, but not pie or bar (aka stacked column chart)
The current workaround is very easy though. Follow these steps:
1) As suggested by this blog, create a custom theme with your desired colors. Using this online tool, I was able to make a minimum theme file from your requirements:
{
"name":"MyTheme1",
"dataColors":["#ff5624", "#21ff13", "#0009db", "#fff780", "#d3d3d3", "#7d00b6"]
}
2) Save this as yourtheme.json and import the file in the Ribbon using Themes->Switch Theme->Import Theme
3) Then you would need to go to the bar chart and pie visual and assign the colors individually:
For the Pie Chart - click the paint roller found in the visualizations pane and expand Data Colors. Then assign the color to the values for each pie piece. (see image for the colors from your theme.)
For bar chart (aka stacked column chart) click the paint roller found in the visualizations pane and expand Data Colors. Then set the Show All setting to On. Then assign the color to the values for each bar.
The image below is a power bi report with bar and pie charts colored with the colors from your imported theme file.