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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Consta
Frequent Visitor

Visualising simple table as diagram

Hello!

Im new to Power BI.

I've got a table from excel (first image) which is illustraded as a linear graph in excel. (second image).

I want the same illustration in Power BI. So i want my x axis with years and quarters and the lines with the values given in the table. Like on 2020 Qtr 3 1 starting project, 2020 Qtr 4 4 starting projects etc..

 

Is this easy possible? I tried it and got some weird solutions. I dont know, maybe im just stupid.

Thanks for the help!

image.pngimage.png

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Consta ,

 

According to your description, you need to modify your data model appropriately in power query. Converted to a table structure similar to the following. Then put the corresponding fields in the line chart visual, refer to the following:

vhenrykmstf_3-1632207523377.png

 

vhenrykmstf_0-1632207115633.png

vhenrykmstf_1-1632207129814.png

Note that the field type of value needs to be changed from text to whole number, otherwise an error will be displayed.

vhenrykmstf_2-1632207433469.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Consta ,

 

According to your description, you need to modify your data model appropriately in power query. Converted to a table structure similar to the following. Then put the corresponding fields in the line chart visual, refer to the following:

vhenrykmstf_3-1632207523377.png

 

vhenrykmstf_0-1632207115633.png

vhenrykmstf_1-1632207129814.png

Note that the field type of value needs to be changed from text to whole number, otherwise an error will be displayed.

vhenrykmstf_2-1632207433469.png


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Consta , Transpose this table or unpivot in power query.

 

Then you should be able to use Qtr on axis

 

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.