Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi
I have a table which have a column for an item and any columns (cost by year) as years I have
How can I resume this table to one which has one column for item a four columns after, one for all estimated costs, other for costs before 2020, one for costs in 2020 and other for cost after 2020.
Thanks
Solved! Go to Solution.
You should be able to do these steps in the query editor to get that result.
1. Click on the Items column and right click and choose unpivot other columns
2.Add a custom column with nested if... then... else to add your <2020, 2020, and >2020 based on the year value in the Attribute column
3. Pivot that new column, choosing a sum aggregation on the Value column
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You should be able to do these steps in the query editor to get that result.
1. Click on the Items column and right click and choose unpivot other columns
2.Add a custom column with nested if... then... else to add your <2020, 2020, and >2020 based on the year value in the Attribute column
3. Pivot that new column, choosing a sum aggregation on the Value column
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |