I want to use a single filter dropdown which filter both table correctly but am unable to achieve the same, am unable to figure out a right model for this.
Would a single slicer, with two dimensions ( Country and Hired Form) helps you any further ?
If I misunderstood your question, could you explain your question more ?
Data model:
The slicer chooses Fact-table dimensions directly, it is possible to create two separate lookup tables for “Country” and “Hired from”
The table “Key filter” is not needed.
The reason I created key filter because I want a Table visual which can be filtered by Column name selection like Country or Hired From in Table 1.
Problem is
I want a single filter for example country which filters both Table1 (which is using key filter) and Table 2 (which uses any attribute from data table).
Dharama just replace the your measure with the below measure it will give you correct answer :
Combined Values =
VAR Total_Values = [Total values]
VAR Percent_Values =
DIVIDE(
COUNTROWS('Data Table'),
CALCULATE(
COUNTROWS('Data Table'),
ALL('Data Table')),
0)
Var ans= Total_Values&"("&FORMAT(Percent_Values,"Percent")&")"
Return
if (ISBLANK(Percent_Values),BLANK(),ans)
--Total_Values
As you can see in the below screenshot: