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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-stephen-msft
Community Support
Community Support

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
v-stephen-msft
Community Support
Community Support

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
Solution Sage
Solution Sage

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.