The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
Still quite new to Power BI myself so looking for assistance with the below. I have the below data set in the following (excel) format which shows change in headcount and cost over time:
Function | Sub Function | Q1 '2022 | Q2 '2022 | Q3 '2022 | Q4 '2022 | Q1 '2023 | Q2 '2023 | Q3 '2023 | Q4 '2023 | Q1 '2024 | Q2 '2024 | Q3 '2024 | Q4 '2024 | |
FTE | Technology | BAU and Change | 121 | 118 | 115 | 114 | 165 | 159 | 151 | 135 | 121 | 120 | 120 | 127.0 |
Technology | Data engineering | - | - | - | - | 22 | 22 | 22 | 22 | 20 | 21 | 21 | 20.0 | |
Cost | Technology | BAU and Change | 2,386,130 | 2,365,737 | 2,295,337 | 2,277,101 | 3,562,177 | 3,460,835 | 3,328,507 | 2,947,143 | 2,774,830 | 2,774,830 | 2,774,830 | 2,902,492 |
Technology | Data engineering | 497,738 | 497,738 | 497,738 | 497,738 | 497,738 | 497,738 | 497,738 | 497,738 | 519,379 | 519,379 | 519,379 | 519,379 |
I have unpivoted the dates to give a more suitable format (below):
However my Cost and FTE is now lumped into one column (Value). I am not sure whether to have two tables (Cost and FTE) and merge the tables once I have unpivoted the dates, or whether I am able to unpivot in a way that can separate the cost from the FTE?
Any suggestions would be much appreciated,
Thanks
Solved! Go to Solution.
Hi again @nholmes12 ,
I was maybe not enough clear in my previous post.
To pivot your data : simply select your column "Value Type" and click on Pivot column. In the windows which pop-up select Value as Values column and in Advanced Options select "Don't Aggregate". It should work.
Please accept it as a solution if it solved your issue.
Best regards
Thanks for the response. I did try this option and it worked well. My only thought was that it may limit my ability to create charts that can compare cost to FTE change over time as I only have one value field?
When you say pivot the ValueType and value, that doesn't appear to be working for me. I have pivoted both columns by attribute which gives the following:
Then pivoted the Value by the type which gives:
Any idea what I am doing incorrectly here?
Thanks!
Hi again @nholmes12 ,
I was maybe not enough clear in my previous post.
To pivot your data : simply select your column "Value Type" and click on Pivot column. In the windows which pop-up select Value as Values column and in Advanced Options select "Don't Aggregate". It should work.
Please accept it as a solution if it solved your issue.
Best regards
Thanks very much!
Hi @nholmes12
If you have a column ValueType containing the information if it is a data FTE or Cost, it should answer your need. Am I right ? (For that simply create that column before your unpivoted column step). You will be able to work on one of the value type using filter.
If you absolutely want to have the value in two separated column, you just to pivot the columns Value Type and Value.
Please accept it as a solution if it solved your issue
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
77 | |
76 | |
43 | |
37 |
User | Count |
---|---|
157 | |
114 | |
64 | |
60 | |
55 |