Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 months ago
Solved

Data transform using power query

Could you please someone suggest me for below issue. Thank you in advance.

I have below format data 

2026actual  budget  
 p1p2p3p1p2p3
revenue123456
food cost 789101112
       
2025actual  budget  
 p1p2p3p1p2p3
revenue123456
food cost 789101112

 

How can I transform this data to below format

 

subjectyearperiodActualbudget
revenue2026p114
revenue2026p225
revenue2026p236
food cost 2026p1710
food cost 2026p2811
food cost 2026p2912
revenue2025p114
revenue2025p225
revenue2025p236
food cost 2025p1710
food cost 2025p2811
food cost 2025p2912

 

  • Hi Anonymous,

    The updated PBIX file is attached for your reference.
    Here, the data has been reshaped to the required format (Subject, Year, Period, Actual, Budget) using Power Query so that it can be used directly for reporting and further analysis.

    Please review the updated file and let us know if everything looks good or if any additional adjustments are needed.

    Thank you.

  • Hi Anonymous ,

    We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

    Best Regards,
    Chaithra E.

7 Replies

Replies have been turned off for this discussion
  • Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
    Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
    Please show the expected outcome based on the sample data you provided.

    Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
    Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

    • Anonymous's avatar
      Anonymous
      Not applicable

      lbendlin Thankyou for your recommendation. I updated the data sample. Can you please suggest how to do it?

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi Anonymous,

    The updated PBIX file is attached for your reference.
    Here, the data has been reshaped to the required format (Subject, Year, Period, Actual, Budget) using Power Query so that it can be used directly for reporting and further analysis.

    Please review the updated file and let us know if everything looks good or if any additional adjustments are needed.

    Thank you.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for solving this issue. I helped me a lot.

    • Devvver's avatar
      Devvver
      New Member

      Has the problem been resolved or not?

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi Anonymous ,

    We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

    Best Regards,
    Chaithra E.

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi Anonymous ,

    May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

    Thank you.