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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
natalia88
Helper I
Helper I

can't create correct X axis

hi All

Novice user here...

I need to create a project overview with information on which division is where in the progress for each steps for each Domain. Below is my sample data set.

  • I would like to be the domains on the Y axis, steps (=columns in my data set) as X axis and the progress bar as values.
  • I also need to be able to filter per division - but a scenario with 3 graphs for each division is also fine.
  • Perfect would also be a time slicer...

For the life of me I can't figure out how to put the steps (columns) on the X axis. I hope someone can help me!

DivisionDomainsStep 1Step 2Step 3Step 4Step 5
AFinance     
AHR10.09.201915.09.201921.09.2019007.10.2019
AIS10.09.201916.09.201921.09.201923.09.201910.10.2019
ASales10.09.2019    
BFinance10.09.201916.09.201923.09.201901.10.201920.10.2019
BHR     
BIS     
BSales10.09.2019    
CFinance10.09.201920.10.2019   
CHR     
CIS     
CSales     
1 ACCEPTED SOLUTION
v-joesh-msft
Solution Sage
Solution Sage

Hi @natalia88 ,

I think you need to use Unpivoted Columns to meet your needs.

1. Open the Query Editor in Power Bi, select the column you want to unpivot, select Unpivoted Columns, results are as follows:11.PNG12.PNG

2. Close and Apply, at this time you can create the desired results according to your needs, examples are as follows (you may need to adjust the format of the time before applying the time slicer):

13.PNG

Here is a demo, please try it

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ETEukiwiFe5Pid3Jki...

 

Best Regards,

Community Support Team _ Joey
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

6 REPLIES 6
v-joesh-msft
Solution Sage
Solution Sage

Hi @natalia88 ,

I think you need to use Unpivoted Columns to meet your needs.

1. Open the Query Editor in Power Bi, select the column you want to unpivot, select Unpivoted Columns, results are as follows:11.PNG12.PNG

2. Close and Apply, at this time you can create the desired results according to your needs, examples are as follows (you may need to adjust the format of the time before applying the time slicer):

13.PNG

Here is a demo, please try it

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ETEukiwiFe5Pid3Jki...

 

Best Regards,

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

SteveCampbell
Memorable Member
Memorable Member

Think you'll want to look into unpivot in Power Query:

https://support.office.com/en-us/article/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221...

Highlight Division and Domains, right click, Unpivot Other Columns.

 

Then you'll get a column "Attribute" which can go in the axis

 

Appreciate your Kudos
Connect with me!

Stay up to date on  linkedin-logo.png
Read my blogs on  powerbi.tips_.png



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



kentyler
Solution Sage
Solution Sage

Is there data underlying this report... or are you just typing the data into the shape we see here. If there is underlying data what is it like ? Perhaps the answer is to start with the data in a table that has:
Division  |  Domain |   Step  |  Amount

as its fields





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Hi, thanks for reply! This is the actual data, I just changed division names to dummies, etc. Basically in each division there are multiple domains and for each domain in each division we need to perform multiple steps => the values are dates when these steps are set to.

I still have the same question.

Can you gather the data in a record format instead of a spreadsheet format.

Who inputs the data ? If they could input the same data as records it would make many more things possible for reporting. If not, then the first task is going to be transforming this data into the record format, maybe in SQL Server or in M





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


so you are looking for something like this

DivisionDomainsDateStep 
AFinance  
AHR10.09.20191
AIS10.09.20191
ASales10.09.2019 
BFinance10.09.20191
BSales10.09.2019 
CFinance10.09.20191
AHR15.09.20192
AIS16.09.20192
BFinance16.09.20192
CFinance20.10.20192
AHR21.09.20193
AIS21.09.20193
BFinance23.09.20193
AHR04
AIS23.09.20194
BFinance01.10.20194
AHR07.10.20195
AIS10.10.20195
BFinance20.10.2019

5

 

if all you have is the spreadsheet you could possibly write a macro to convert it... but it would be better in the long run to speak to who ever is entering the data





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.