one-way interaction between visualisations - powerbi

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.

Related

In Power BI, using DAX. How do I get multiple (text) values/strings from a slicer?

For a multi page report I'd like to put all synchronised slicers on the first page and then show the selection result on cards in all aother pages.
I followed this tutorial by Curbal:
https://www.youtube.com/watch?v=_k_Qxb6pyCc
This works for selecting numbers. But....
I have text in the selectable fields.
So how do I return multiple selected strings from a slicer?
I hope it's just a small thing that I'm missing.
[edit]
Here's two images:
First page with slicers
Second page with visuals and cards based on the selection on page one.
Kind regards,
Erik Crins
There is a function that aggregates the values in a table - CONCATENATEX
https://learn.microsoft.com/en-us/dax/concatenatex-function-dax
If you want to show all the values selected in a slicer on a card you can use it like this:
Text = CONCATENATEX(ALLSELECTED(Slicer[Field]), [Field], ", ")

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.

How deselect a radio button on select of another in power bi?

I have used chiclet slicer to achieve radio button,
In my case from 3 measures I have taken 3 chiclet slicers, While clicking on a single radio button it is working fine, but on selecting another how to deselect the other two radio buttons.
I have data in 3 different measures "daily", "weekly" and "monthly".
My requirement is on the select of any those rest two options should be deselected, which is the default behavior of the radio button.
Or you can suggest me if there is any other way to implement the radio button.
I've always achieved this using the standard slicer and a hidden table with the needed labels and/or values.
Create a table by using "Enter data" or by using DAX, and put in it your 3 labels "Daily","Weekly","Monthly", I will call the table "MyTable" and the column "SwitchLabel"
Create a slicer with field "SwitchLabel", in the selection control enable "single select". (you can change the orientation in the "general" section).
Create a switch measure like the one below:
SalesSwitch = SWITCH( SELECTEDVALUE('MyTable'[SwitchLabel])
,"Weekly", [WeeklySalesmeasure]
,"Daily", [DailySalesmeasure]
,[DefaultMeasure] --optional "else", if nothing matches or there are multiple selections
)
Put the "SalesSwitch" measure in the charts.
The slicer/filter on the "switch" table must be present on every page that uses the measures, otherwise (without filter), it will always fall in the default case.
One limit of this solution is that it cannot change the X axis, in fact you are just calling different measures based on the selection.
If you need to also change the X-axis use Seymour's method with buttons and bookmarks.
There are many ways to implement the same need.
Buttons + Bookmark (built-in)
Slicer + Switch (built-in)
custom visuals in the store
In general, I prefer built-in Power BI functionalities because for enterprise production solution you do not want to rely on custom tools not officially supported by the software vendor.
Therefore, if your project is a real work then my suggestion is to use the Buttons + Bookmark built-in functionality. For your case you need:
Buttons
Bookmarks
In practice, create 3 buttons: Daily, Weekly and Monthly.
Next, create a bookmark with the default view, calling it Default.
Then, update one bookmark for each of the three view. It could simply be hiding or showing a visualization in the same page. Please note that a hidden visualization will not trigger any computation when the page is opened.
Finally, set the action of clicking the button to direct the user toward the bookmark.

Is there any drill through possible within a single table in Power BI?

I have a table Visual where the Data like Date,Description,Value,Type are present. If the one of the 'Type' value is clicked the Next row should expand showing the details related to that type , like - > ID, Message. Also the Expanded detailed row should come up only when the selected user group does the Type selection within the same Power BI table visual.
I have created 2 tables.I have created the relationship between these two tables using the ID column.Since its the OLAP based Report, I have created the RLS implementation on the 2nd table for the particular user group.
Yes, create a hierarchy in your model. In the fields pane right-click Type and click New hierarchy. Then right-click ID and click Add to hierarchy. Many visuals like the Matrix and others, will then offer drill down.

Face KPIs using two slicer values

I am trying to compare Charts and KPIs in PowerBI report. In fact, face the same figures tables but with different slicing values (time room, countries...)
I could only create two tabs with basically the same slicers and visualization. But I couldn't put them one aside the other that apply to that tab.
Can anyone help me with this.
Many thanks,
You have several options, here are the simplest two:
Use visual level filters to display two visuals with different filtering
There are three levels to the Filters sub-pane - "visual", "page" and "report" - they control the scope of a filter.
When editing a visual, you can drag any data field to the Filters sub-pane's "visual" field-well and configure a filter affecting only that visual.
As a simple example: for a table with "Sales" and "Country" columns, you can create one KPI visual showing sales and configure its filter to "UK", then create another KPI (or just copy the first one) and configure its filter to "France" etc. Using this approach you can create several KPI visuals in the same page, each displaying sales data for a different country (Tip: you'll probably want to edit their titles so that viewers can tell which KPI shows what).
Use Edit Interactions to have slicers that affect only some visuals on the page
In Power BI Desktop, go to Format tab in the ribbon and click "Edit Interactions". This causes each visual to display several small buttons on its top right corner - these control how the active visual affects each other visual (typically you can select between "highlight", "filter" and "no interactions", note that not all visuals supports all three options).
As a simple example with the same table from above, you can create two KPI visuals showing sales and two slicers filtering by country. Then, edit the interactions so that one slicer affects only one KPI and the other slicer only affects the other KPI. This will create an interactive report with two KPIs comparing sales between any two countries - according to the user's actions on the slicers.
Finally, these posts from MS Power BI have detailed tutorials (including screenshots) for the two options described above:
Visual level filters
Visual interactions