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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Saaam
Frequent Visitor

Transpose row values to one row value whit delimiter

Hi!

 

I have a table "Warehouse" where i can have multiple lines for each item, with different location (WMSLOCATIONID)

 

CompanyItemIdInventSiteIdInventLocationIdInventario_FisicoWMSLOCATIONID
bita50710100196385CNCN011002AM3Y
bita50710100196385CNCN01902EST-G3Z
bita50710100196385CNCN0125XEF7X

 

I need a measure (because i need to apply some filter in) to show all locations for each item row by row, like this:

 

CompanyItemIdInventSiteIdInventLocationIdWMSLOCATIONID
bita50710100196385CNCN012AM3Y / 2EST-G3Z / XEF7X

Actually i did something like this (ignore FILTER):

Ubicazioni = CALCULATE(
                CONCATENATEX(
                    FILTER(WHS_MAGAZZINO_V01,WHS_MAGAZZINO_V01[Inventario_Fisico]>0 &&  
                    NOT (CONTAINSSTRING(WHS_MAGAZZINO_V01[WMSLOCATIONID],"CS_")) && NOT WHS_MAGAZZINO_V01[WMSLOCATIONID] = "PACK" && NOT WHS_MAGAZZINO_V01[WMSLOCATIONID] = "CELLA01" && NOT WHS_MAGAZZINO_V01[WMSLOCATIONID] = "PARKING" && NOT (CONTAINSSTRING(WHS_MAGAZZINO_V01[WMSLOCATIONID],"RECV_"))),
                    WHS_MAGAZZINO_V01[WMSLOCATIONID]," / "),
                    ALLEXCEPT(WHS_MAGAZZINO_V01,WHS_MAGAZZINO_V01[ItemId],WHS_MAGAZZINO_V01[InventLocationId],WHS_MAGAZZINO_V01[itemconfigid])
                )

It works but if i drag up/down the measure in the table it goes from this:

Saaam_1-1720510692975.png

To this:

Saaam_2-1720510741706.png

Like a "big summary" of all locations!

This measure also fail to refresh sometime (memory allocation)

 

Can you help me to achieve this in a better way?

 

Thanks!

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Saaam , use isinscope to remove the total value

 

Assume you have Company in visual at top most level in matrix or used in table visual

 

a new measure =

If(isinscope(WHS_MAGAZZINO_V01[company]), [Ubicazioni], blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Saaam , use isinscope to remove the total value

 

Assume you have Company in visual at top most level in matrix or used in table visual

 

a new measure =

If(isinscope(WHS_MAGAZZINO_V01[company]), [Ubicazioni], blank())

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors