Power BI Fiscal Year?Hack

Power BI Fiscal Year?Hack

The Problem

I was presented with a requirement where the charts and slicers in the Power BI dashboard were to be sorted according to the fiscal year. This meant that the charts which started in January and ended in December were to be sorted according to the company’s fiscal year start and end. Their fiscal year began in July and ended in June next year.

The magic begins?here

I created a conditional column in Power Query where I replaced the values. July became 1, August became 2, September 3, and so on. This got me a new column which I renamed “FY Months”.

Then comes the magic trick. Select the column which you want to sort which in my case was “Month” which was in the data initially.

No alt text provided for this image
Months column was in the data while FY Months was created in Power Query

Click on the said field which will open a new bar at the top of the taskbar.

No alt text provided for this image
The new bar on the task bar will show up like this

Select “Sort by Column” and then select the FY Months fields.

No alt text provided for this image

Say Abra Kadabra and you will have your charts and slicers sorted accordingly.

Here is how my charts and slicers displayed after this:

No alt text provided for this image
Line chart displaying the time series over the months

Look how the line chart is starting from July rather than its usual practice which is starting from January

No alt text provided for this image
Month slicer if you want to display the data for a specific month

The point to note is that the slicer is also displaying the first value to be July rather than January.

This is how I changed my dashboard from January to December into July to June according to the requirements.

Basharat, over and out.

PS: I know you like everything in HD but for the time being you have to work with my ultra HD screenshots which give you the classic feel of old Nokia phones. Hehe.

#datascience #datavisualisation #powerbi #data

Gen Santiago

Driving change through data & finance business partnering ? ~15 years of leading teams in Finance, Data Analytics, Strategy ? VP Commercial Finance

1 年

That's indeed a 2-minute read. Easy and clear. The only things that are not clear are some of the screenshots which, as you said, remind us of Nokia phones ?? But despite that, everything makes sense Syed Ahmed Basharat Ali !

要查看或添加评论,请登录

Syed Ahmed Basharat Ali的更多文章

  • Docker vs Podman: A newbie taking on a legend

    Docker vs Podman: A newbie taking on a legend

    Containers have revolutionized application deployment by enabling faster, scalable, and consistent development…

  • Am I the only one?

    Am I the only one?

    Hi there, fellow data people. I have been pondering on thoughts related to data analysis and wanted to include you in…

  • Hookup with Tableau

    Hookup with Tableau

    If your company harnesses the power of Tableau as its visualization software, you're in luck! There are numerous ways…

  • Data + Business - The way forward

    Data + Business - The way forward

    Let’s discuss a use case where business knowledge combines with data. In the world of Fintech everything is based on…

  • Why the field of data?

    Why the field of data?

    This is a very common question I get asked. It has a very simple answer for me as this was a very concious decision.

  • Importance of Data Exploration & Business Context

    Importance of Data Exploration & Business Context

    You will find a lot of people bragging about their skills in the field of data and you will see them using fancy words…

    1 条评论
  • Humans' obsession with "automation" and the new superhero in AI Galaxy - AutoGPT

    Humans' obsession with "automation" and the new superhero in AI Galaxy - AutoGPT

    In the ever-advancing world of technology, the human quest for automation has been an ongoing endeavor. From the…

    1 条评论
  • Stop making simple line charts. Add the power of max and min?instead.

    Stop making simple line charts. Add the power of max and min?instead.

    Are you related to data and somehow make line charts on a daily basis? Well, let’s discuss how to make the line charts…