Highlight selected bar in a column chart in Power BI - powerbi

I have got a column chart with 79 geographies and a slicer with the 79 geographies. The column chart is NOT dependent on the slicer however there are other visualisations in the page that are dependent on the slicer.
What I would to achieve is when I select a specific geography in the slicer the bar that corresponds to that selected geography should be highlighted (i.e. a different colour fill). Can someone please let me know if it is possible to achieve.
I was able to achieve this partly by creating an independent slicer. Not coming from the table or joined to the table. I created 2 new measures, one that shows the selected value in the slicer and the second measure to give it a colour. I used this to change the data colour by using "fx" to determine the colour of the column. I am attaching the Power BI file that shows this solution for your reference.
But by doing an independent slicer my other visualisations don't update. I am wondering if it is possible to achieve this without creating an independent slicer so that my other visualisations are not affected.
Any help is greatly appreciated. Thank you.
Measure 1: Measure = SELECTEDVALUE(Locality[Locality])
Measure 2: Colour = IF(MAX(Sheet1[Locality]) = selectedvalue(Locality[Locality]),"red","blue")
Please see below the screenshot and also link to the sample .pbix file for your reference.
Sample Power BI file - https://1drv.ms/u/s!AubIV2PXG9p4gqhykbbmeMfFYlChCw?e=w6UABf
Disconnected table solution file - https://1drv.ms/u/s!AubIV2PXG9p4gql1_KvyEK82cZZDMw?e=7TAR6i

You did a great trick as I checked your solution file. But slicer not working as expected which is your issue as per your explanation. To make it work, you can just think reverse of what you have done now.
You have separated slicer value from other data, so that selecting a value in the slicer still keep all Locality in the Bar chart. But problem is, its also keeping all localities in other charts where you wants to take effect of slicer selection. Right?
If the above explanation and assumption is correct, just separate your Locality and Population column to a different island (no relation) table. And create your BAR chart from the new table. Now, if you select a value in the slicer, all charts will be filtered accordingly but the BAR chart.
Finally, apply the Color measure to FX as you implemented currently. This will work as I tried it here and got success. Following is the sample output-

Related

Create a column in power Bi Based upon selection

Recently I came up with this problem:
I have a table with two different codes: COD1 and COD2. I want to create in power bi bar charts and tables with this information but I want to be able to change whether if I want to see them with COD1 or COD2. I have a slicer that gives you the option of which code you want the info be displayed. I've done this before with numeric data types because you can do this with a measure, however I don't know how to make it work with non-numeric columns.
COD1
COD2
Sales
AA
A10
5
AB
B45
10
CD
D44
20
I'm not exactly sure what you're trying to achieve but if I understand you correctly, you can change columns on a bar chart by making two bar charts. One will have COD1 as an axis with Sales, and the other will have COD2 as an axis with the same sales metric.
You could then use buttons and the bookmark functionality of Power BI to seamlessly "switch" the axis. See an example below:

Power BI Table w/ Slicer Where Other Columns Adjust Parameters Based Off Selection

I have the following Power BI table example for an operating expense report that uses a slicer to filter the first column named "Actual". This is to see the operating expenses for one month compared to the budget figures for the year. It also compares the year-to-date and annual figures. How can I create dynamic columns that change based on the slicer selection? These additional columns are not shown in the pic below but included in the last pic. The Budget column below was just created as an example to show what it should look like.
I set up a star schema with several tables shown below. There's only one expense fact table used and the slicer only works for the first column as previously stated but I need all the other columns to use different parameters and adjust based off what's selected in the slicer. The last image is an overview of the info and the parameters for each column. I tried creating new columns with measures for the budget to see if I can get that going but can't figure out how to make it adjust with the slicer selection.
I'm not sure if I should be using separate queries for each column or can this be done using the one expense table. Hope this isn't too confusing. Please let me know if more info is needed.
If I understood what you wanted correctly I think I solved your problem.
I was able to create the following:
I did not use all values since I did not want to type everything, if you provide some test data it is easier to replicate you dashboard.
This matrix (so not table) allows you to filter for Date (if you so desire, you can always show all date's in the matrix) Book and AccountTree.
The way this is done is by putting the address column in the ROWS for the matrix, Putting the Date column in the COLUMNS of the matrix and putting your values (actual, budget, variance) in the values of the matrix.
For the date is used days, since it was easier to type. You can always use weeks, months, quarters or years.
For this to work you have to create the following relationships:
Hope this helps.
If not, please provide test data so it is easier to try and solve your problem.

Hierarchy label customization - Power BI

I have a Clustered column chart in Power BI which has a category and date on the Axis so that there's a hierarchy to view the data on. In the hierarchy view, each column in the chart has the full hierarchy name below it. I would like to have the category name once only and then the dates for each column specified instead of the dates and category name with each date repeated. So I would like for the hierarchy labels to have their own "grouping" as it were. Is anyone able to assist with this please? I don't want to pivot the data because then there's a legend that viewers of the report need to look at to see what color column matches up to which date in the chart which isn't practical.
If anyone does run into this I ended up using the Infographic Designer custom visual that I imported from the Power BI Marketplace. With this I was able to achieve what I wanted by using the "Column By" feature of the visual. This gave me multiple charts for the different groups of data I wanted to view.

How to filter value in a card based on another chart in Power BI

I have Slicer InsurType, Pie Chart Premium by Division and Card that represents Budget
On a picture below all InsurType are selected and Budget shows correct amount (101.4M).
If I choose parameter on a slicer, then the Budget value also represents correct amount (picture 2).
But now, if I click and choose value on a pie chart - then the Budget value will not be effected.
I tried to change Edit Interaction but still - no effect.
So why the Budget value is not filtered by Pie Chart selection?
I am assuming its something to do with relationship that have "BudgetDate" table and "Divisions"
Divisions table looks like this:
Any advise how should I fix this issue?
It looks like there is no way for the Premiums table to affect the BudgetData table based on your diagram (look at the way the arrows are pointing).
I'd suggest editing the relationship to allow two directional filtering by changing the "Cross filter direction" from "Single" to "Both".

Power BI - How to show next 2 days of selected date?

I'm new to Power BI and I am having difficulties. I have some slicers as filters and two chart as below:
Sample Report
The bottom chart shows data with data according to date selected in the slicers which is straight forward. E.g. The slicer selected 15-Oct-2017, the bottom chart should shows 15-Oct-2017 as well.
The upper chart should shows the next 2 days of the selected chart, i.e. data of 16&17-Oct-2017 should be shown. How do I achieve this in a dynamic way so that when slicer selection change, this chart changes accordingly?
Thanks in advance
you can achieve this by creating 2 measures like that:
NextDayValue = CALCULATE(COUNT([columnYouWantToCount]), DATEADD([DateColumn],1,day))
Next2DayValue = CALCULATE(COUNT([columnYouWantToCount]), DATEADD([DateColumn],2,day))
and then use these measure in your charts.
Hope that helps!
Problem solved.
Refer to link below for complete solution
Solution Here