cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thrasymaque
Frequent Visitor

Create a graph with column title in X

Hi ! 

 

this is mly first post I am a very beginner in PBI

 

simple question but can not find out the answer ! 

 

I do have a database with 1 line per project

On each project I do have 4 column with the spend of the project per Quarter

Q1 Q2 Q3 Q4 

 

I would like to create a graph (Idealy a curve) Showing in X "Q1" "Q2" "Q3" "Q4" (just the column title) and in Y the sum of the column amount 

 

I CAN T FIND OUT how to perform this super simple thing 

can you help ? 

many thx

Fred

1 ACCEPTED SOLUTION
RolanRodrigues
Frequent Visitor

Amit is absolutely right if you unpivot the datayou get to the solution you need
bleow steps:

Step 1: get to the Query editor by selecting 'edit query'
1.jpg
Step 2: select the columns Q1 to Q4 by holding the Shift key now right click  and select 'unpivot columns'
2.jpg

Step 3: click 'close and apply' (your data should now look as below)
3.jpg

 

Step 4 build your visulaisation:
4.jpg

hope this helps 🙂 

View solution in original post

4 REPLIES 4
Thrasymaque
Frequent Visitor

Gentleman : Thank you soooo much for the time you have been taking explaing it to me : Power Bi is a totally different approach and I must admit not easy 

your time and advise are sincerely very much appreciated

 

BR

Frederic

RolanRodrigues
Frequent Visitor

Amit is absolutely right if you unpivot the datayou get to the solution you need
bleow steps:

Step 1: get to the Query editor by selecting 'edit query'
1.jpg
Step 2: select the columns Q1 to Q4 by holding the Shift key now right click  and select 'unpivot columns'
2.jpg

Step 3: click 'close and apply' (your data should now look as below)
3.jpg

 

Step 4 build your visulaisation:
4.jpg

hope this helps 🙂 

View solution in original post

amitchandak
Super User IV
Super User IV

@Thrasymaque , one way is use all 4 as values in the visual(say Bar)

 

Second, unpivot the data and use it

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

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

@amitchandak sorry if I was not clear :

here is how is built the DB

graph2.JPG

And This Is the result I d like 🙂

 

graph.JPG

 

 

is it more clear ? 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors