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
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
Employee
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
Employee
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
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.

Top Solution Authors