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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mshapiro
New Member

Create a Report based on a Drop Down field

Hello,

I would like to create a report in Power BI that will join 2 tables on 1 ID and create a report where we have a CustomerID\Name as a drop down field...chosing the Customer will then populate all the employees that belong to that customer in a table result set below the dropdown. So choosing the CustomerID populates the table with all employees, chosing another CustomerID repopulates the table from scratch with it's employees.

Like a Pivot in Excel.

I was able to easily join the 2 tables in PowerBI based on a PK -> FK. But is this possible to show a report like this in PowerBI Desktop ? If it is, then how?

Thank You.

Max

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @mshapiro,

Based on my test, you can refer to below steps:

1.I have entered some sample data to test for your problem like the picture below:

B.PNG

2.Create a Slicer visual and add the ‘Table2’[Customer ID] and create a Table visual and add the related fields. Now you can see the result.

C.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/iobs4fytqwldlux/Create%20a%20Report%20based%20on%20a%20Drop%20Down%20field...

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @mshapiro,

Based on my test, you can refer to below steps:

1.I have entered some sample data to test for your problem like the picture below:

B.PNG

2.Create a Slicer visual and add the ‘Table2’[Customer ID] and create a Table visual and add the related fields. Now you can see the result.

C.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/iobs4fytqwldlux/Create%20a%20Report%20based%20on%20a%20Drop%20Down%20field...

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you Daniel, I will try that.

Can the CustomerID table be a drowdown list instead of a selection list?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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