Forum Discussion

jayjani's avatar
jayjani
Helper I
7 years ago

Fiscal Year Issue

Hello,

 

I have my Excel sheet formatted in the below way. I need to calculate the Month over Month change in Flash.

 

IndexRegionLocationTransfer OrgFYSubmissionCategoryQ1Q2Q3Q4
606GeoIndiaCompute TowerFY19Jun FlashCost0.010.010.010.01
607GeoIndiaCompute TowerFY19Jul FlashCost0.000.010.010.01
608GeoIndiaHITFY19Jun FlashCost0.070.090.140.14
609GeoIndiaHITFY19Jul FlashCost0.190.230.220.22
610GeoIndiaSDCFY19Jun FlashCost0.010.010.010.01
611GeoIndiaSDCFY19Jul FlashCost0.010.010.010.01

 

First, I unpivoted my data in Power BI to have just one column for 'Quarters'. Then I split FY and Submission column to fetch 'Year' and 'Month'.

 

I created a separate 'Date Table' and adjusted Date as per my Org's Fiscal Year (FY starts in November) using the command -

Date = IF( 'Month Index'[FY Month No] < 3, 'Month Index'[FY Month No] + 10, 'Month Index'[FY Month No] -2 ) & "/1/" & 'Month Index'[Year])

 

However, when I use the Quick Measure 'MoM change', it doesn't calculate the actual difference and results following:

If somebody could help, I would deeply appreciate it. I have been working on this the entire week.

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Can you upload some sample data?  Seems like a relatively quick solution, but would like to see some of the data if possible.

  • Anonymous's avatar
    Anonymous
    Not applicable

    You have to DENORMALIZE your fact table COMPLETELY and correctly connect it to a Date table. It won't work in any other way if you want to use Quick Measures. So, no columns like Q1, Q2, Q3... You have to assign the rows in your fact table concrete dates, like, for instance, the first/last day of a quarter. And then, for this whole thing to work you have to hide the columns in your Date table that have a granularity higher than quarter.

     

    Best

    Darek

    • jayjani's avatar
      jayjani
      Helper I

      Thank you Darek. I already unpivoted Q1,Q2,Q3,Q4 columns into a single Quarters column.

       

      I didn't understand hiding columns. How will that make a difference?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Well, your fact table's granularity is the Quarter. If you start slicing it by months/dates, then you'll get numbers that will be incorrect or rather correct but not easy to interpret. Hiding the columns with higher granularities prevents people from using them and thus from seeing bullsh*t. But, of course, you're free to leave them visible. However, you then have to make sure yourself that your measures are aware of which granularity has been requested and take action accordingly.

         

        Best

        Darek