Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Roomie117
Frequent Visitor

Designation : when i select designation from the slicer : it should show designation info in tabl

I have a table with multiple columns 

if designation = manager  should show manager related information  
if designation = HR should show HR related information in the table visual.
I split into two tables (manager and CEO)  to get that data and wanted to use two tables into the measure  is there any way we can achieve this?  i wanted to use in table visual 

@PowerBI 

Example :

Manager name, manager experience, address, email, manager worklocation 

HR : 
HR name, Manager Name, HR experience, address ,Email

Not: I am getting all these values in one table for creating measure i split the table into two

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Roomie117 ,

 

It's suggested that you can try the field parameter feature.

Here's an example.

Drag the fields to the left for filtering.

vstephenmsft_2-1727164491963.png

When you want to display designation = manager, you can select manager fields to display.

vstephenmsft_0-1727164446830.png

When you want to display designation = HR, you can select HR fields to display.

vstephenmsft_1-1727164458840.png

Reference: Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Roomie117 ,

 

It's suggested that you can try the field parameter feature.

Here's an example.

Drag the fields to the left for filtering.

vstephenmsft_2-1727164491963.png

When you want to display designation = manager, you can select manager fields to display.

vstephenmsft_0-1727164446830.png

When you want to display designation = HR, you can select HR fields to display.

vstephenmsft_1-1727164458840.png

Reference: Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

suparnababu8
Super User
Super User

Hi @Roomie117 

 

I think you have to create sperate measure for each designation.

Lets take your case

Managermeasure 

Managermeasure = 
IF(SELECTEDVALUE('Table'[Designation]) = "Manager",CONCATENATE(CONCATENATE(CONCATENATE(               CONCATENATE('Table'[Manager name] & ", ",'Table'[Manager experience] & ", " ),
                'Table'[Address] & ", " ),'Table'[Email] & ", "
        ),'Table'[Manager worklocation]
    ),
    BLANK()
)

HR Measure

HRMeasure = 
IF(
    SELECTEDVALUE('Table'[Designation]) = "HR",CONCATENATE(CONCATENATE(CONCATENATE(
                CONCATENATE('Table'[HR name] & ", ",'Table'[Manager Name] & ", "),
                'Table'[HR experience] & ", "),'Table'[Address] & ", " ),
        'Table'[Email]
    ),
    BLANK()
)

 

Then combine the both measure into a single measure
COmbinedMeasure

CombinedMeasure = 
IF( SELECTEDVALUE('Table'[Designation]) = "Manager",[Managermeasure],
    IF(SELECTEDVALUE('Table'[Designation]) = "HR",[HRmeasure],
        BLANK()
    )
)

 

Use matrix chart to get correct output.

 

I hope this helps you

 

Thanks!



 

This is not working, it is looking for a measure column , unable to add column name in the measure, please let me know if we have any alternatives

Ritaf1983
Super User
Super User

Hi @Roomie117 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Manager namemanager divisionmanager EmailHR full nameHR EmailHR Location & stateEmployee percentage hikeExpected hikeCompleted projectemployee RankDesignation
ABCUSAabc@gml.comdavid peterdavidp@gml.comUSA ,NYhmk10301100Manager
CDE UKcde@gmail.comkevin murphykevinm@gml.comUK,NewportKLM1535280HR 
xabUSAxab@gml.comjenny testjennyt@gml.comUSA ,NYxxx20304100Manager
yabUKyab@gml.comsarah testsaraht@gml.comUK,Newportyyyy1535380HR 


when i select Designation= manager it should display values like this 

Manager namemanager divisionmanager Email percentage hikeExpected hikeCompleted projectEmployee
ABCUSAabc@gml.com10301hmk
CDE UKcde@gmail.com15352KLM
xabUSAxab@gml.com20304xxx
yabUKyab@gml.com15353yyyy


when i select Designation = HR  form the slicer  it should display values like this  


HR full nameHR EmailEmployee percentage hikeExpected hikeCompleted projectemployee RankManager name
david peterdavidp@gml.comhmk10301100ABC
kevin murphykevinm@gml.comKLM1535280CDE 
jenny testjennyt@gml.comxxx20304100xab
sarah testsaraht@gml.comyyyy1535380yab


it should display in one table visual.

Thanks for the support 🙂

 

Hi,

Assuming you already have 2 tables in Power Query - one for Manager and another for HR, create a column in each table (column title as Designation).  Create a Dim table of 2 rows - HR and Manager.  Create a relationship (Many to One and Single) from the 2 Fact tables to the Dim table.  To your slicer, drag Designation from the Dim table and select Manager. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

No Ashish,
I have only table but when i select designation  = manager  from the slicer it should show only manager related information in the table visual when i select designation = HR it should show HR related information in the table visual 
columns should change dynamically as per slicer selection .

Thanks
Hamsini

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.