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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Babycakes_00
Helper I
Helper I

Pivot/unpivot or group!

Hi All 

 

I have a data set that spits out and I know I can either use grouping or pivoting but I am stuck

 

Table 1 products.

Comes out like this;

SubmissionIDEntryIDProductFieldColumnValue
1233500ApplesBin0 
1233501ApplesQuantity035
1233502ApplesBin1 
1233503ApplesQuantity1109
1233504ApplesBin2 
1233505ApplesQuantity2144

 

i need to look like this 

SubmissionIDProductBinQuantityKilos
123Apples362210 
123Bananas12 2280
     

 

 

Table 2

FORM IDEntryIDNameValue
1233486Date out11/26/2024 00:00:00
1233487DateIn9/11/2024 0:00
1233488ReceivalNo999999
1233489ID1
1233490NameLisa
1233491LocationAction
1233492TestTest
1233493Size 
1233494Comment 

 

Need to reformat to;

 

FORM IDDate outDateInReceivalNoIDNameLocationTestSizeComment
12311/26/2024 00:00:009/11/2024 0:009999991LisaActionTest  
          

 

 

 

Table 3 

SubmissionIDEntryIDIndexGroupRowTypeColumnValue
12334950PeopleTableFieldEntryLaborTypeSupervisor
12334960PeopleTableFieldEntryNameTEST
12334970PeopleTableFieldEntryNumber of People1
12334980PeopleTableFieldEntryStart11/26/2024 02:45:00
12334990PeopleTableFieldEntryFinish11/26/2024 07:00:00
12335381PeopleTableFieldEntryLaborTypeSupervisor

 

 

Outcome

 

SubmissionIDLaborTypeNameNumber of PeopleStartFinish
123SupervisorTEST111/26/2024 02:45:0011/26/2024 07:00:00
123SupervisorTEST111/26/2024 02:45:0011/26/2024 07:00:00
      

 

Can someone assist kindly 🙂

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Babycakes_00 ,

 

Did you solve your problem in these days?

If not, please provide us with more detailed sample data as lbendlin said, thanks.

If your problem has been solved, we would be happy to see your sharing with solution.

 

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.

lbendlin
Super User
Super User

Your sample data does not match the expected outcome.

 

Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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