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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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