Highlighting Scatterplot Power bi - powerbi

I have data from different insurance companies.
For these companies I made a scatterplot with Net Premium on the X Axis and Net profit on the y axis.
In the Report I also have 3 bar charts and a table.
I have filters for years, category and company.
The scatterplot ignores the years filter and is filtered by the category filter.
I am trying to highlight the chosen Company in, and only in, the scatterplot.
For example, I filter for a category so my scatterplots shows all data points for the given companies that lie within the category.
Now I want the "company filter" to highlight the data point in my scatterplot.
I tried to do this with conditional formatting but my scatterplot does not take conditional formatting.
I also looked at the method on this site
http://sqljason.com/2018/03/highlighting-scatter-charts-in-power-bi-using-dax.html
This however is not what I want because I don't want to have another bar chart.
I want my company filter to directly highlight my scatterplot. Does anyone know a way how to do this?

You can do this by editing your interactions. Select the filter you want to edit the interaction for. You now get a tab format, select it and select "Edit interactions".
In the example below, I selected the Score filter and disable the Employee table from acting on the filter.

Related

Slicing the power BI report only by slicers not images

I have a scenario where I am using date and country slicers along with maps in my report along with some stacked charts.
When I click on the map for one country it filters the data based on that country I have selected but the filter is not reflected in slicers.
Is there any way that I can use the map only to display the counts without having select, in other words, no selection allowed on the maps?
Any suggestions would be helpful.
Thanks!
Go to Format tab and select Edit Interaction option as shown in the below image. Now select your Map visual and set Filter = None in other visuals you don't like to interact when click on the Map.

Dynamic column change in visual based on slicer in power BI

I have a chart as below,
Here I have certain metrics which needs to be shown as Monthly, quarterly, yearly.
Ex. if monthly is selcted chart should show in months as mentioned,
if quarterly is selected chart should show in quarter and same applies for yearly.
So I tried with following code,
Created a table,
|Monthly|1|
|Quarterly|2|
|Yearly|3|
Created the selcted value measure as
select = selectedvalue('table1'[column2])
Created a switch to use that calculated column in axis of the bar chart,
switch[select]
1,'calendar[Month]',
2,'calendar[Quarter]',
3,'calendar[year]')
Output is showing as variant data-type cannot be used in calcualted column,
I understand that some values are either text or number, how to change accordingly to same datatype.
I have tried with zero also it is showing the same error.
Is there any other approach to this dynamic changing of columns?
You can add buttons and use bookmarks to assign action based on Month, Quarter and Year to those buttons, all you need to do is create 3 visuals and align them then based on buttons make the visual visible/invisible and the update the bookmark.

one-way interaction between visualisations

I have a simple (one table) report with the following columns: Date, Amount, Category and Subcategory.
I try to create a page with three visualisations.
The first one is for the amount/date (vertical bar chart). The second one is for amount/categories (treemap). The last one is for amount/subcategories (treemap).
I have created hierarchy for date and categories.
When I select a column in the amount/date, the visualisation of the bottom ones filters OK.
The problem that I have is that when I click on the amount/category treemap the amount/date bar chart resets its selection and the amount/category shows all the categories across all the dates.
I have tried to prevent this by setting the interaction to "No Impact" on the amount/date visual, but it didn't help.
How do I create "One Way" interaction between visuals?
If you CTRL-click, you can make multiple selections. If you click normally, then regular visuals will replace filters on other visuals.
Slicers are a special visual type whose selections don't get overridden by selections in other visuals.

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".