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
baBI123
Helper II
Helper II

grouping, sorting and a drop down list

Hello, I am new to power BI and I need help with a small project. What I have is on the left and what the desired outcome is on the right (see picture)
power bi example.png

 

I have part numbers and I want to know the following information for each part number: 
the total qauntity ordered (I want the sum of the data), total cost (sum of data), and finally I want a drop down list that will show me all the PO #'s that go along with that particular part number. 
Does this make sense??

Thanks in advance!

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @baBI123,

 

It is not possible to add a drop down list as a table column. As a workaround, you could list all "PO#" inside a single cell for each part number. Please create a calculated table using below formula:

SummarizePO =
SUMMARIZE (
    'PO Table',
    'PO Table'[Part Number],
    "Total Cost", SUM ( 'PO Table'[Total Cost] ),
    "Quantity Ordered", SUM ( 'PO Table'[Quantity Ordered] ),
    "PO list", CONCATENATEX ( 'PO Table', 'PO Table'[PO#], "," )
)

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @baBI123,

 

It is not possible to add a drop down list as a table column. As a workaround, you could list all "PO#" inside a single cell for each part number. Please create a calculated table using below formula:

SummarizePO =
SUMMARIZE (
    'PO Table',
    'PO Table'[Part Number],
    "Total Cost", SUM ( 'PO Table'[Total Cost] ),
    "Quantity Ordered", SUM ( 'PO Table'[Quantity Ordered] ),
    "PO list", CONCATENATEX ( 'PO Table', 'PO Table'[PO#], "," )
)

1.PNG

 

Best regards,

Yuliana Gu

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

THANK YOU SO MUCH @v-yulgu-msft !!!!

baBI123
Helper II
Helper II

@Phil_Seamark do you think you can take a look at this? It has to do with the other answer you gave me, but now I am trying to build on that...

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.