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

Unstructured Table

Hi Team,

 

Thank you so much for your help, now I have another query...

 

How can I work on Trend Analysis/Line chart in the below one.

 

screen.PNG

 

Thanks,

Kali

1 ACCEPTED SOLUTION
lkalawski
Memorable Member
Memorable Member

Hi Kalidass,

 

To create a trend chart, you have to unpivot the table.

Ex1.png

You will get this view and then use year and Value to build a trend line.

Ex2.png

Result:

Ex3.png

 



_______________
If I helped, please accept the solution and give kudos! 😀

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is this problem solved?


If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.


If not, please let me know.

 


Best Regards,
Icey

amitchandak
Super User
Super User

@Anonymous 

Unpivot the data create tables/dimensions for the Market, Keys and year to create star schema model

https://radacad.com/pivot-and-unpivot-with-power-bi

 

Market = distinct(all(Table[Market]))

Keys= distinct(all(Table[Keys]))

Year= distinct(all(Table[Year])) //You will get after Unpivot

 

Join them back with table

Refer:https://docs.microsoft.com/en-us/power-bi/guidance/

 

 

Pragati11
Super User
Super User

Hi @Anonymous ,

 

Before generating any trend/line chart, you will have to modify the structure of the data, so that you can have a DATE column on your x-axis on the chart.

For this what you can do is following:

  1. Go to Edit Query section.
  2. Naviagte to the data-set that you have shown below.
  3. Select all the date columns - 2020 to 2028.
  4. Go to Transform and Unpivot the selected columns.
  5. You will send up with following columns:
    • Markets
    • Keys
    • Attribute
    • Value
  6. Attribute column will have date values - 2020 to 2028. Rename this column to DATE or whatever you want.
  7. Now you can use this column to generate some trend chart.

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

lkalawski
Memorable Member
Memorable Member

Hi Kalidass,

 

To create a trend chart, you have to unpivot the table.

Ex1.png

You will get this view and then use year and Value to build a trend line.

Ex2.png

Result:

Ex3.png

 



_______________
If I helped, please accept the solution and give kudos! 😀

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.