Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
shiex1
Frequent Visitor

12 month growth (not rolling average) % calculation and visual

Hello, I have been working on some calculations this week and I wonder if anyone knows why the _12moOffsetGrowth has the _% overall and how is that calculated by PBI? I need the measure to show -0.63% on the card visual instead of -87.41% since the date slicer (on Billing Cycle, which has a relationship with date table) is set to have the most recent month to be Dec 2023. If the date slicer is set to have the most recent month to be Oct 2023, then the card visual should say 92.93%.  Below are what i did to get to this point and sample data. Any thoughts are appreciated. Thank you.

shiex1_2-1702511154383.png

shiex1_3-1702511296706.png

 

I created the _12moOffsetCharge as:

 

_12moOffsetCharge = CALCULATE(SUMX(Data_Table, Data_Table[Actual Charge]),PARALLELPERIOD('DATE Table'[Date], -11,MONTH))
 
The MaxMonth Actual Charge is created measure as below so when the filter of month year changes, the max charge changes:
_MaxMonthEffharge =
VAR __MaxYear = MAX('DATE Table'[Year])
VAR __MaxMonth = MAX('DATE Table'[Month])
VAR __TmpTable = CALCULATETABLE('Data Table',ALL('DATE Table'[Year]),All('DATE Table'[Month]))
RETURN SUMX(FILTER(__TmpTable,Data Table[_BillingYear]=__MaxYear && Data Table[_BillingMonth] = __MaxMonth),Data Table[Actual Charge])
 

Lastly I calculate the 12mo growth measure as:

_12moOffsetGrowth% = DIVIDE([_MaxMonthEffharge] - [_12moOffsetCharge], [_12moOffsetCharge])

 

 

 

I need

 

Here is the data.

 

YearMonth Actual Charge  Prior Billing Cycle Charge  MoM Variance MoM Variance %_YTD MoM % (Based on Discounted Gross Charge)12-mo Avg % Change _MaxMonthEffharge  _12moOffsetCharge _12moOffsetGrowth%
2022May $      17,885.07           17,885.07                          17,885.07  
2022June $   146,414.81                                 17,885.07        128,529.74718.64%718.64%718.64%                     146,414.81  
2022July $   142,042.75                              146,414.81          (4,372.06)-2.99%357.83%357.83%                     142,042.75  
2022August $   212,896.38                              142,042.75          70,853.6349.88%255.18%255.18%                     212,896.38  
2022September $   207,696.94                              212,896.38          (5,199.44)-2.44%190.77%190.77%                     207,696.94  
2022October $   174,485.42                              207,696.94        (33,211.52)-15.99%149.42%149.42%                     174,485.42  
2022November $   201,927.65                              174,485.42          27,442.2315.73%127.14%127.14%                     201,927.65  
2022December $   229,243.29                              201,927.65          27,315.6413.53%110.91%110.91%                     229,243.29  
2023January $   193,298.78                              229,243.29        (35,944.51)-15.68%-15.68%95.09%                     193,298.78  
2023February $   217,615.94                              193,298.78          24,317.1612.58%-1.55%85.92%                     217,615.94  
2023March $   212,483.01                              217,615.94          (5,132.94)-2.36%-1.82%77.09%                     212,483.01  
2023April $   306,524.11                              212,483.01          94,041.1144.26%9.70%74.11%                     306,524.11                      17,885.071613.86%
2023May $   300,219.67                              306,524.11          (6,304.45)-2.06%7.35%67.76%                     300,219.67                    146,414.81105.05%
2023June $   277,168.01                              300,219.67        (23,051.66)-7.68%4.84%7.23%                     277,168.01                    142,042.7595.13%
2023July $   282,204.95                              277,168.01             5,036.941.82%4.41%7.63%                     282,204.95                    212,896.3832.56%
2023August $   329,822.24                              282,204.95          47,617.2916.87%5.97%4.88%                     329,822.24                    207,696.9458.80%
2023September $   365,386.93                              329,822.24          35,564.7010.78%6.50%5.98%                     365,386.93                    174,485.42109.41%
2023October $   389,575.77                              365,386.93          24,188.836.62%6.52%7.87%                     389,575.77                    201,927.6592.93%
2023November $   541,835.81                              389,575.77        152,260.0539.08%9.48%9.81%                     541,835.81                    229,243.29136.36%
2023December $   192,081.36                              541,835.81      (349,754.45)-64.55%3.31%3.31%                     192,081.36                    193,298.78-0.63%
1 REPLY 1
lbendlin
Super User
Super User

Would you mind explaining the calculation rules for the columns startign with YTD Average % Change?

 

By the way here is the simplified PBIX for the left side.

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.