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

need help on the line chart

hi all,
based on the file, is it possible to have a line chart that show the total sales for the different date period?
for example: chart of 3 lines to show the sale for each date period for product c which has 3 different period.

any hint or advice is grateful.

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi @Anonymous ,

 

If I am not mistaken, you have already done the unpivot thing on your previous post so you are now quite aware of how it is done. 

Your thread here.

 

This post is also about unpivoting.

The pbix file is attached here for you to understand the steps applied in Power Query based on the data you provided.

 

2019_09_03_08_13_19_Untitled_Power_BI_Desktop.png

 

 

View solution in original post

5 REPLIES 5
mussaenda
Super User
Super User

Hi @Anonymous ,

 

If I am not mistaken, you have already done the unpivot thing on your previous post so you are now quite aware of how it is done. 

Your thread here.

 

This post is also about unpivoting.

The pbix file is attached here for you to understand the steps applied in Power Query based on the data you provided.

 

2019_09_03_08_13_19_Untitled_Power_BI_Desktop.png

 

 

parry2k
Super User
Super User

@Anonymous better you unpivot your data in power query and then it should be straight forward. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k could you explain a little on it?

 

@Anonymous on edit query, select date column, right click and then choose unpivot other columns. It will give you two column, Attribute and Value, rename those columns (if you want)

 

Now you will have 3 columns in table. To visualize, use date on x - axis and value column on values it will show sum of value for all 3 customers for each date.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

parry2k 

would it be able to show the value according these dates?

 

 

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.