Thursday, December 23, 2021

Use Power Query to solve common Excel budget issues

 Here are some ways to use the function to deal with frequently occuring budget issues.

If your financial year ends in June, it’s budget time. Whether you use multiple files or multiple sheets to compile your budget, Power Query could be the solution to one of budgeting’s common problems. Power Query can compile a budget with minimum fuss. It can also automate the process, and in some cases provide an easy solution for versioning your budget. In many cases you will be able to retrofit Power Query into existing budget processes and automate manual processes.

Worked example

Let’s take a situation where we have four states. Each state has its own file to compile. Each file has five separate department input sheets, one for each department. We need to combine the four files and extract the five department sheets from each. Ideally, we want to create both a budget layout (months going across the page) and a data layout of the total budget.


This example will use a profit and loss budget.


Figure 01 shows the lists of the four states and the five departments.

Figure 1.

Figure 1.

The layout of each department sheet is shown in Figure 02. The middle month columns have been hidden.

Figure 2.

Figure 2.

Column U ensures the total in column T is within tolerance of the total input in column D. Column V tests for any Excel errors. Each file has a separate sheet for each department, plus a Control sheet.


The process is to send the state file to each state manager who is responsible for completing the five department sheets, which make up the P&L. The updated files are returned, and each state file will be saved into the same folder. This allows us to have a separate folder for each version of the budget.


The companion materials for this article will include a zipped folder with the four budget files.


Just a reminder that Power Query is built into Excel 2016 and later versions. It is a free Microsoft add-in for Excel 2010 and 2013. This example will use Excel 2016 as the interface.


The screenshots and some of the options and button names may differ between versions. Power Query is being regularly upgraded. Screens and options may change over time. Power Query is also part of Power BI (Microsoft’s dashboard and reporting application). Any skills you learn in Power Query in Excel can be directly applied to Power BI.

Points to note

  • When importing files all files must be closed.
  • Power Query does not affect the source files in any way.

Steps

  1. In a blank file click the Data ribbon, and then the Get Data icon drop-down (far left). Choose From File, then choose From Folder. 
  2. Click the Browse button. Navigate to the BUDGET folder, select it, and click Import.
  3. The files in the folder will be displayed. Click the Combine drop-down (bottom of dialog) and choose Combine & Transform Data.
  4. Click the Parameter option on the left side of the dialog and click OK.
  5. The Power Query window will open and all the sheet names will be listed. We do not need the Control sheets to be imported. Click the filter drop-down in the Name column and use the Text Filter option to filter out (exclude) the Control sheet as per Figure 03. Click OK.

  1. Figure 3.
  1. Only the department sheets will now be listed. There is a special double arrow icon on the right of the Data column heading. Click this icon and then click OK.
  2. We do not need the first two columns or the last three columns. You can select and remove them using the Remove Columns icon on the Home ribbon, or right-click the column heading and choose Remove.
  3. The top three rows are not required. On the Home ribbon click the Remove Rows icon and choose Remove Top Rows and then type in 3 and click OK.
  4. The first row now contains the headers for the columns. Click the Use First Row As Headers icon on the Home ribbon.
  5. Remove the three columns Allocation, Months Between, and Number of Allocations. You can select the first column, hold the Ctrl key down and use the mouse to select the other columns ready to delete. 
  6. To remove rows with no values, use the filter drop-down on the Account column, untick null and click OK. The null option is always shown at the top of the list. In Power Query, null means blank.
  7. To remove the remaining redundant rows, use the filter drop-down on the State column, untick null and State and click OK. This removes blank rows and the other heading rows.
  8. The data is ready to import. Click the Close and Load icon (top left of screen).
  9. The budget has been imported in a budget layout with months across the page.
  10. We can also create a standard data listing of the budget. Figure 04 shows the final output structure. In the Queries Task Pane on the right of the screen, right-click the BUDGET query and choose Reference. This creates a new query that uses the output of the BUDGET query as its input (Source).
    Figure 4.

    Figure 4.

  11. For this data listing we can remove the Total, Total _1, Validation and Error Validation columns. Note: the imported data had two Total columns. Power Query does not allow duplicated column headings, so it appends numbers to the duplicated column headings.
  12. Select the State column, then hold the Ctrl key down and select the Department and Accounts columns. Right-click the header of one of the three selected columns and choose Unpivot Other Columns. This will retain the columns selected and create two columns for the other entries as per Figure 04.
  13. Rename the Attribute column to Date. Right-click the header of the Date column and choose Change Type and Date. Change the type of the Value column to Currency.
  14. The budget has now been converted into a standard data layout – see Figure 04.
  15. Click Close & Load to finish.

We now have two separate listings of the same budget. We have a compiled budget file. To update the budget, you need to right-click the output table and choose Refresh.


To handle a new version of the budget, we could create a new folder, BUDGET_2, and save the revised files to that folder. The only change we need to make is in the initial BUDGET query.


Edit the BUDGET query. Select the Source step on the right of the screen. The Formula Bar will display the path of the folder as per Figure 05. If the Formula Bar isn’t visible, click the View ribbon tab and tick the option.

Figure 5.

Figure 5.

Simply change folder path in the Formula Bar and press Enter. Click Close & Load to create a whole new budget version. If you make an error, you can close the query (click the x on the top right), choose Discard and start again.

Things to note

  • If you want to update a single state file, overwrite the existing file, refresh the first query and then the second query.
  • If you had a new state, for example, TAS, simply save the TAS file to the folder and refresh the queries in sequence.
  • These instructions assume that there are no other files are in the BUDGET folder. If there could be extra files, you’ll need to use an extra filter in step five to exclude those other files.
  • This assumes only a Control sheet plus the Department sheets are in each file. If there were other sheets, they too would need to be excluded in step five.

 The companion video and Excel files (blank & complete) will go into more detail to demonstrate these techniques.


Ref: Power Query

Saturday, December 18, 2021

ချီးမွမ်းခြင်းသည် အပြုသဘောဆောင်သော အလုပ်ဆက်ဆံရေးကို ထိန်းသိမ်းရန် အရေးကြီးပါသည်။ ဤသည်မှာ အလုပ်တွင် ချီးမွမ်းခြင်းအတွက် အကြံပြုချက်များဖြစ်သည်။

 Praise is vital to maintaining positive work relationships. Here are tips on delivering praise at work.


လူ ၇၀ ရာခိုင်နှုန်းနီးပါးသည် ချီးမွမ်းခြင်းပေးခြင်းနှင့် ခံယူခြင်းဆိုင်ရာ စိုးရိမ်ပူပန်မှုအချို့ကို ခံစားရကြောင်း လုပ်ငန်းခွင်အသိအမှတ်ပြုအကြံပေးကုမ္ပဏီ Beyond Thank You ကို တည်ထောင်သူ Christopher Littlefield ၏ သုတေသနပြုချက်အရ သိရသည်။


သို့တိုင် တူညီသော သုတေသနပြုချက်များအရ ဖြေဆိုသူ ၈၈ ရာခိုင်နှုန်းသည် ချီးမွမ်းခြင်းကို တန်ဖိုးထားသည်ဟု ခံစားရကြောင်း တွေ့ရှိခဲ့သည်။


Nearly 70 per cent of people experience some degree of anxiety about giving and receiving praise, according to research by Christopher Littlefield, the founder of workplace recognition consultancy Beyond Thank You.


Yet, the same research has found that 88 per cent of respondents associate praise with feeling valued.


" ချီးကျူးစကားတစ်ခုအတွက် ကြင်နာစွာပြန်ကြားခြင်းသည် 'ကျေးဇူးတင်ပါတယ်' ဟု ရိုးရိုးရှင်းရှင်းပြောခြင်းဖြစ်သည်။ တစ်ခုခုကို တကယ်ဆိုလိုတယ်ဆိုရင် 'ကြားရတာ အရမ်းကောင်းတယ်' ဟု ထပ်လောင်းပြောနိုင်သည်” ဟု Littlefield က အကြံပြုသည်။


“A gracious reply to a compliment is simply saying, ‘Thank you’. If it really meant something, you could add, ‘That’s really great to hear’,” suggests Littlefield.


Thursday, December 2, 2021

အရေးကြီးသော 'ပထမ'

1. အရေးကြီးသော 'ပထမ'

အရေးကြီးသော “ပထမများ” ကို အမြဲဂုဏ်ပြုသင့်သည်။ “အဖွဲ့တစ်ဖွဲ့ကို စီမံခန့်ခွဲဖို့ ပထမဆုံး အကြိမ်၊ ဘုတ်အဖွဲ့ ဒါမှမဟုတ် အကြီးတန်း စီမံခန့်ခွဲရေးမှူးထံ ပထမဆုံးအကြိမ် တင်ပြတာ၊ သိသာထင်ရှားတဲ့ ပရောဂျက်တစ်ခုကို ဦးဆောင်ခိုင်းတဲ့ ပထမဆုံး အကြိမ် ဒါမှမဟုတ် မီဒီယာ အင်တာဗျူးကို ပထမဆုံး အကြိမ် ပြုလုပ်တာ ဖြစ်နိုင်ပါတယ်။ " လို့ Gibbings ကပြောပါတယ်။


အဲဒီအခိုက်အတန့်တွေကို သိသာထင်ရှားစေတာက နောက်ပိုင်းမှာ ဘာတွေဖြစ်လာမလဲ။


ယနေ့ခေတ်တွင် တောင်းဆိုနေသော အချိန်ဇယားများသည် ကျွန်ုပ်တို့ကို လေ့လာရန်နှင့် ကြီးထွားရန် ကူညီပေးနိုင်သည့် ခွဲခြမ်းစိတ်ဖြာမှုမျိုးအတွက် နေရာအနည်းငယ်သာ ကျန်ရှိတော့သည် ။


“မင်းအလုပ်နဲ့ အလုပ်ရှုပ်နေတဲ့အခါ အလုပ်တစ်ခုကနေ လုပ်ဆောင်ချက်တစ်ခု၊ ပွဲတစ်ခုကနေ နောက်တစ်ခုကို သွားလေ့ရှိတယ်” လို့ သူမက ဆိုပါတယ်။


ယင်းအစား၊ ရပ်တန့်ရန်၊ ဆင်ခြင်သုံးသပ်ပြီး ကောင်းမွန်သောအရာကို တွေးတောရန် အချိန်ပေးပါ။ သင်လုပ်ဆောင်ရမယ့် ပရော်ဖက်ရှင်နယ်စိန်ခေါ်မှုမှာ သင့်စွမ်းဆောင်ရည်ကို မြှင့်တင်ရန် ဤထိုးထွင်းသိမြင်မှုကို အသုံးပြုပါ။


စွန့်စားပြီး ကျရှုံးတယ်။


အအောင်မြင်ဆုံးသော စီးပွားရေးခေါင်းဆောင်များသည် ၎င်းတို့၏အသက်မွေးဝမ်းကြောင်းတွင် တစ်ချိန်ချိန်ကျရှုံးမှုများကြုံတွေ့ရတတ်သည် - ၂၀၀၅ ခုနှစ်မှ စတင်ပြီးမကြာမီတွင် ထွက်ပေါ်လာသည့် ၎င်း၏ ပေါ့တ်ကာစ်ပလက်ဖောင်းဖြစ်သည့် Odeo အကြောင်း မအောင်မြင်သော Virgin Brides သို့မဟုတ် Twitter တည်ထောင်သူ Evan Williams အကြောင်း Richard Branson ကို မေးကြည့်ပါ။


"မင်းရဲ့အသက်မွေးဝမ်းကြောင်းတစ်လျှောက်လုံးမှာ တစ်ခုခုအဆင်မပြေတဲ့အခိုက်အတန့် ဒါမှမဟုတ် မင်းမအောင်မြင်သလိုခံစားရတဲ့အခိုက်အတန့်တွေကို မင်းအမြဲတွေ့မှာပါ" လို့ Gibbings ကဆိုပါတယ်။


ဤကျရှုံးမှုများသည် အချိန်ကြာလာသည်နှင့်အမျှ ၎င်းတို့သည် အပြုသဘောဆောင်သော သို့မဟုတ် အပျက်သဘောဆောင်သည့်အကျိုးသက်ရောက်မှုရှိမရှိကို ကျွန်ုပ်တို့ မည်သို့ဆုံးဖြတ်သည်—“သင်ကိုယ်တိုင် 'ငါကျရှုံးနေတယ်' လို့ ကိုယ့်ကိုယ်ကိုပြောနေတာလား ဒါမှမဟုတ် 'ဒီအချိန်မအောင်မြင်သေးဘူး' လို့ ကိုယ့်ကိုယ်ကို ပြောနေတာလား။ ”


ကြီးပွားရေးစိတ်ထားဖြင့် ကျရှုံးမှုကို ချဉ်းကပ်ခြင်းသည် ဆုတ်ယုတ်မှုကို အခွင့်အလမ်းအဖြစ် ပြောင်းလဲနိုင်သည်။ အကြံပြုချက်ကို နားထောင်ပါ၊ အမှားအယွင်းများကို ပိုင်းခြားစိတ်ဖြာပြီး အတွေ့အကြုံမှ သင်ယူပါ၊ Gibbings က အကြံပြုပြီး အခြားသူများသည် သင်၏ခံနိုင်ရည်အား သတိပြုမိပါလိမ့်မည်။


"မင်းတို့ပတ်ဝန်းကျင်က ခေါင်းဆောင်တွေကို မင်းသရုပ်ပြနေတာက 'အဲဒီလူက လိုက်လျောညီထွေဖြစ်အောင်၊ အလုပ်အကိုင်ရှုထောင့်မှ အရေးကြီးသော အရည်အချင်းများအားလုံး သင်ယူလိုစိတ်၊ သူတို့ အရင်က မလုပ်ဖူးတဲ့အရာတွေကို လုပ်ချင်စိတ်ရှိတယ်' 





"If you are interested, you'll do what's convenient; if you're committed, you'll do whatever it takes." - John Assaraf"
1 332 333