Slicer with values from 3 different tables - powerbi

I use Power BI Desktop with SQL Direct Query.
Here I have 3 tables which all contains a Country column.
I have an additional table which contains all possible country entries. Relation to the other 3 tables is created. Relations.
Via a slicer I wanna select the countries of interest (country values of the 3 tables), but I have no clue how I can create that?
I already create a measure to get a merged list of the 3 tables Measure. But I can't use that for the slicer.
Any ideas?

Related

Filter multiple columns using single slicer in power bi

I am new in power bi. I am creating a basic tabular report in power bi. But the catch is I have multiple dates columns in the dataset (For Eg. productvalidfrom,productvalidto,ordervalidfrom,ordervalidto). And I want to filter these columns with a single date selection.
If I select 2021-09-01 then condition for filter will be
2021-09-01>=productvalidfrom and 2021-09-01<productvalidto and 2021-09-01>=ordervalidfrom and 2021-09-01<ordervalidto
and need to all the columns from the dataset. No summarization.
Thanks in advance.
I have been able to implement this before. You will need to add a data table to your data sources. Then you will want to create relationships between the dates in your data and the date table. Only one of them will be active relationships, the rest will be inactive. Then, your slicer will use the date from your newly created date table.
This link should be able to guide you through the build.

How to use a single slicer to manipulate multiple plots in PowerBI

I have multiple tables, all having one common column like:
Table1 => datetime, val1; Table2 => datetime, val2...
I have multiple plots on my page using these tables, and dont want to make changes to my tables
I want to create a single slicer to manipulate all these plots on the page. How do I do this in PowerBI
And also, how to do the same using a common filter.
When you add the slicer to the page, it will automatically apply to all visuals on that page, IF the slicer has a logical connection to the data.
If you have different fact tables that all have a datetime column with the same name, then you may need to build a calendar table that has all the dates and create relationships between the different fact tables and the calendar table.
You can then use a slicer with the calendar table date field. Since there is a relationship between your fact tables and the calendar table, the slicer on the calendar date will then also filter the visuals that pull data from the fact tables.
If with "common filter" you are referring to a page filter, again, you can use the calendar table date to filter the related data from the fact tables.

How do we add custom rows using in power bi based on specific string in a column

Need suggestions how do we create rows to existing table which is pulled in Power BI through direct query. For instance I have Emp Table with a Column which contains coma separated activities by Students like Reporting,Analysing,Troubleshooting (These are just . I am trying to create a measure to add rows for each activity so that I can display activity matric in Pie Chart.

Filter two tables using the same filter in powerbi

I have two tables showing country data in PowerBI, one table contains sales data in different countries and another shows stats about each country. I then have a dashboard that has a chart from each table. I want a single filter that filters on the country column in both tables.
i.e. If I filter on the US, I will get a chart showing sales data in the US and a chart showing other stats about the US.
The country columns have duplicate values in both tables so doing a relationship between them is difficult. Moreover the tables are not really related to each other as such, I just to filter the data in both so my dashboard updates both charts. Any help?
Create a table that just has the list of unique countries and make a relationship from that table to both other tables. Then use that table for your filter, rather than the country column of either of the two original tables.

Relating a Date Slicer from a different table for Filtering in Power BI

Currently, I have about three tables in my Power BI report.
1. First table lists retailer records for the year 2016. (Columns: CompanyID, Company, FullAddres, Status). So this would list records for the year 2016 from January 1st to december 31st
2. Second table is same as above but for the year 2017.
3. Third one is a Date Table I have created in sql server and then loaded in the power Bi.
I created visualizations along with some calculated measures. The goal is to use the DateTable as a slicer and upon filtering the Week Ending date in the slicer it should reflect the results. so basically DateTable has week ending date as a column and using which we i want to filter the results.
I have created Relationship of Date Table with other two tables but unfortunately when i filter, it doesn't work fine. Kind of results in 0 results.
The relationship of DateTable with both the tables is created as Many to one with cross filter direction set to both.(tried with single as well)
How should i make some changes so that i can use WeekEnding Date from DateTable as a slicer? Any help will be appreciated.