pie chart filter in power bi - powerbi

I have a problem in power bi. suppose I wanna have the pie chart of items thrn I wanna apply the filter based on branches. when choosing a branch, the pie chart shows the items related to that branch. but now it shows the pie chart of the all branches and highlights the related part of the filtered branch.

You are probably using Visuals value to filter Pie Chart data and this is expected. For example you have 10 rows in a table visual and you have a Pie Chart for that 10 same values. Now, you are selecting 1 row in the table visual and what happened in the table visual? 1 selected row is highlighted and other 9 rows become faded, right? The Pie chart also showing the same way and this is correct.
But, if you wants to filter out everything in the Pie chart based on your selection, you need to use Slicer. Just generate your slicer with the column you wants to filter data. Now select value in slicer and the Pie chart will also response accordingly.
Step-1: Create the Slicer with column "Branch"
Step-2: Create the Pie chart with Legend = "Item" and Value = "your_value_column"
When nothing is selected in the slicer, you will get results for all your items for all branches. But, when you select 1 or multiple values from the slicer, Item will be only belongs to those selected Branches.

Related

Missing "Value" field in Visualization pane of Power BI

I am now only seeing the "Y-asix", "X-asix", "Legend' options in the Visualization pane. I cannot see "Values" option any more in the Visualization pane , sorry that i can't pasty image to this questions
The fields you see depend on the visual selected, e.g.
Clustered column charts or Line charts don't have a VALUES field
Pie chart and Matrix do have a VALUES field

Display sum of values and group by another column within a column chart in Power Bi

Lets say I have this table for instance, which shows the values and what colour it is for July 1st 2020:
Currently the column chart looks like so:
Is there a way to sum up val and group by the RAG column and represent this as a column chart?
So it will still show one chart but it will segment it into how much of that total was in the red zone, how much was in the amber zone and how much was in the green zone.
Note: I have tried adding RAG on the axis but this splits the chart rather I need them to be in one bar but showing the split between each RAG
Try using the Stacked Bar Chart visual and put RAG in as the legend.

Power BI - stacked column chart / visualizing counts per month

I'm a newbie in Power BI and I'm now stuck with a visualization problem. I have an Excel table with columns about (1) the title of a news article and (2) the date when it was published. As seen on the screenshot from Excel, there are months on which nothing was published.
I need to make a stacked column chart in Power BI from it. First, the one I made shows only years, while I want to see months. Second, I'd like to see each month, including those that have the value of 0 (i.e. nothing was published on this month). Thus my aim is to have 48 month columns instead of my 4 columns for years. Thanks a lot in advance!
Initial data, Excel
The Power BI stacked column chart that I want to tweak
I assume you are using auto date/time in Power BI Desktop, for simplicity:
Create a new bar chart visualisation
Drag the Date column into the Axis field
The Date column should transform into a hierarchy - remove Quarter from this hierarchy
If the Date column does not show up as a hierarchy, right click Date in the Axis field and select Date Hierarchy
Drag the Title column into the Values field
Right click Date in the Axis field and tick Show Items With No Data
Click the visualisation in the canvas and press the button that looks like one arrow that splits into two arrows, to expand all down one level in the hierarchy
This should get you what you are after:
You can deselect Concatenate Labels for your X-axis to get this result.

Is it possible to add editable/movable horizontal line on Clustered Column Chart Power BI?

Want to add a horizontal line on the chart that can be editable/movable by the user.
See the orange line in below chart sample. Is it possible in Power BI? How can I achieve this?
For the standard set of visuals you can use a 'What if' measure and slicer combination to allow the user to set a line value.
You'll need to use the visual line and cluster column (or stacked column). Drag the items in as normal for the axis and columns, then select under the modelling tab 'New Parameter What if'
Set your Min/Max values
This will create a new Parameter table' with the following in it (You can rename all the objects:
This will add a slicer to the page, the values will be passed to a measure that can now be plotted on the visual. Drag the 'Parameter Value' measure to the Line Values axis. For example slicer set at '600'
Move the slicer and it will update the line, for example slicer set at '1000'

Power BI. Drill down on pie chart by filtering

I have a pie chart which shows the distribution of groups, and when I drill down on it, it will show the distribution of departments by selected group. I also have a slicer to filter the pie chart by groups.
I want to be able to drill down to the second level. Basically getting to the second image by using the slicer. Is it possible in Power BI, or do I need custom visuals?
Ok, I have a 'hack' for you to consider.
1) Create two pie charts, one for group and one for department
2) Add a row to your dataset
Group:"_All" | Department:"_All"
3) Modify your interactions so that chances to the slicer don't filter the 'Groups' pie chart
4) Add a filter to both of the pie charts to exclude group _All
5) Drag the Department pie exactly on top of the Group pie.
When you have _All selected in the slicer, that will collide with the filters in your departments pie, it won't show anything at all, and the 'Groups' pie will be visible underneath. Otherwise, filtering for any of the other groups will cause the Departments pie to show on top, filtered properly.
There's a lot of drawbacks. Data labels, differences in size, titles -- all that stuff has to be turned off because they cause overlapping and it looks horrible. Mouseover is a little weird, and all cross filtering / highlighting from other visuals has to be considered and managed.
But, in the golden path, it will at least look like it's supposed look.