Forum Discussion

Bali21's avatar
Bali21
Frequent Visitor
3 years ago

Action Filter in Power BI

Hello All,

I have a scenario where basically I am using 2 view in report. View1 on the top have location and 3 calculated column which is showing count of emp.

View 2 below have emp name, mgr name and location. Basically I want to incorporate a functionality such as if I click on any value in view 1 then below view 2 should get updated as per my selection. It seem very basic but somehow I am not able to get it.

 

View1:

LocationMatch Code (Calculated Coulmn1)Mismatch Code (Calculated Coulmn2)Missing Code (Calculated Coulmn3)
Loc11125
Loc27216
Loc3981

 

View 2:

Emp NameMgr NameLocation
EMP1Mgr 1Loc1
EMP2Mgr 1Loc2
EMP3Mgr 1Loc3
EMP6Mgr 2Loc1
EMP4Mgr 2Loc2
EMP5Mgr 2Loc3

 

Ex: If I click on "6" in Missing code (Calculated column3) in view 1, Then View 2 should show only 6 record of emp as per my selection.

Any help is much appreciated!!

 

Note: Both the view has single datasource and generated from same table.

2 Replies

  • Bali21 , Only thing the first visual will pass is location. Assume the first and second views is having a common location. you can filter that, Rest has to filter based on a measure.

     

    I doubt with current information I can suggest a measure for that.


    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

  • Bali21's avatar
    Bali21
    Frequent Visitor

    amitchandak 

    My Bad, There are 3 calculated Measure not the column.

     

    View1:

    LocationMatch Code (Calculated Measure1)Mismatch Code (Calculated Measure2)Missing Code (Calculated Measure3)
    Loc11125
    Loc27216
    Loc3981

     

    View 2:

    Emp NameMgr NameLocation
    EMP1Mgr 1Loc1
    EMP2Mgr 1Loc2
    EMP3Mgr 1Loc3
    EMP6Mgr 2Loc1
    EMP4Mgr 2Loc2
    EMP5Mgr 2Loc3

     

    Data is similar to above table. Basically these measures are giving count of emplyee who are wrongly mapped to location.

    Thanks for your help!