A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Abdul Razack,
According to your request, you can try following these steps (the guidance is quite long so you need to follow and re-check carefully):
Step 1: Verify the source data
For proper MoM/QoQ/YoY calculations, you need a real Excel date on the Month + Year column. If your Month column is text like Jan 2026, Feb 2026, etc. you need to convert them into real date (if it's real date already, skip to step 2):
- On the blank column, use this formula
=DATEVALUE("1"& MonthDataRange)and format it asmmm yyyyto create a real date value then copy and paste value (Ctrl+Shift+V) them back into the Month column - Name your Source data table (e.g. FactDep)
Step 2: Prepare Data Model tables
Next you need a separate Calendar Table:
- Create a new worksheet name Calendar and add these headers: Date, Year, Month No, Month Name, Month-Year, Quarter, Quarter-Year
- Go back to your Source data table, in a blank column, use this formula
=UNIQUE(FactDep[Month])to extract all the Month value then copy > paste value (Ctrl+Shift+V) into the Date column of Calendar sheet and set the formatting into Date. - Now use these formulas:
- Year column:
=YEAR(A2) - Month No column:
=MONTH(A2) - Month Name:
=TEXT(A2, "mmm") - Month-Year:
= TEXT(A2, "mmm yyyy") - Quarter:
="Q"&ROUNDUP(MONTH(A2)/3,0) - Quarter-Year:
="Q"&ROUNDUP(MONTH(A2)/3,0)&" "&YEAR(A2)
- Year column:
- Convert the range to Table and name it "Calendar"
Step 3: Analyze with Data Model
- If you don't see the PowerPivot tab on the ribbon, go to File > Options > Customize Ribbon > check the box next to PowerPivot to enable it.
- Click anywhere on the FactDep table > PowerPivot tab > Add to Data Model
- Go back to the Excel file > click anywhere on the Calendar table > PowerPivot tab > Add to Data Model. In the end, you must have two tables inside the Data Model like this
- In PowerPivot, go Design > Create Relationship > set up like below and press OK
- Go back to Home tab > View > select Calculation Area > you will see a field below a grey line
- Select a cell in the Calculation Area and add these DAX measures one-by-one:
-
TotalDep:=SUM(FactDep[Total Dep]) -
PrevMonthDep:=CALCULATE([TotalDep],DATEADD('Calendar'[Date],-1,MONTH)) -
MoMFlux:=[TotalDep]-[PrevMonthDep] -
PrevQuarterDep:=CALCULATE([TotalDep],DATEADD('Calendar'[Date],-1,QUARTER)) -
QoQFlux:=[TotalDep]-[PrevQuarterDep] -
PrevYearSameMonth:=CALCULATE([TotalDep],DATEADD('Calendar'[Date],-1,YEAR)) -
YoYFlux:=[TotalDep] - [PrevYearSameMonth]
-
- Then you can close the PowerPivot window now.
Step 4: Build the PivotTable and PivotChart
I will demonstrate an example for GL Month on Month flux, and you can perform similar to other charts
- Go to Insert > PivotTable > From Data Model
- Put the main calculation
fx TotalDepinto Values field - For GL Month on Month flux, we will need
GLof FactDep table in Rows, in values add two additionalfx PrevMonthDepandfx MoMFlux - Select the PivotTable and go to PivotTableAnalyze > PivotChart > choose Clustered Bar since you want GL of Y axis and Totals in X axis.
- You can add slicers/filters based on your preferences
- The other 4 PivotTables have the same approach, e.g. for Region MoM Flux, add Region in axis and
fx PrevMonthDepandfx MoMFluxinto values
Please try the steps and let me know if it works. If you have any questions or need further assistance, please feel free to share them in the comments on this post so I can continue to support you.
Thank you for your understanding and cooperation. I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread