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
Anonymous
Not applicable

Shapes dates on single raws

Hi, 

 

I have the following data model:

 

Raw.JPG

 

How can I  transpose the dates in to columns for Total_Quantity and Total_Price? It should be like this:

 

Final.JPG

 

Thank you in advance!

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

See if this works for you (BTW, where did you get the image for the expected result? It comes from a Query, does it not?)
dates into rows.JPG

 

I'm not sure if there is a simpler way to do this, but I came up with a way which involves three different queries and a number of merges.

I've attached the PBIX file for you.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

See if this works for you (BTW, where did you get the image for the expected result? It comes from a Query, does it not?)
dates into rows.JPG

 

I'm not sure if there is a simpler way to do this, but I came up with a way which involves three different queries and a number of merges.

I've attached the PBIX file for you.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

sorry Paul, 

 

How can I open your Example.pbix? Unfortunately I have the following error:

error.JPG

HI @Anonymous,

If your table structure is similar to the excel file which you share with 'PaulBrown', you can copy the raw report 'source' step to replace the shared sample file 'source' steps to fix the issue.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

@Anonymous 

Sorry about that. You need to point the the query to your source file (it's currently pointing at my hard drive).

Use the option in the PQ ribbon "Data source settings" to change the source file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

@Anonymous 

 

Thanks but since the source is stored locally, I can't access the PQ steps. Can you try disabling the "Include in refresh" option (right click on the query and uncheck the option) or provide a sample dataset in an Excel file?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

 This is the Excel Source split in Raw data and potential final solution: https://1drv.ms/x/s!AoM_DkwZfHBihn1g_LB3PHNbSeP5?e=d6KMGu 

 

Thanks Paul

PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

Please provide a sample dataset to work on. (you can share a file from a cloud service (Onedrive, Dropbox, Google Drive...)

Thanks!





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.