Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I am looking for assistance creating a formula to calculate the variance between two periods. I have created an example below.
What I need is to write a formula comparing budget to each of the other period types. Essentially I would like to compare/show a variance comparing 2020 budget to 2020 6+6, 2020 7+5 and 2020 Forecast
Thanks!
| Period | Dollars | Period (Budget - Other) Variance |
2020 Budget | 9953 | |
| 2020 Forecast | 8795 | |
2020 1+11 | 4652 | |
| 2020 2+10 | 7452 | |
| 2020 3+9 | 5642 | |
| 2020 4+8 | 4511 | |
| 2020 5+7 | 3225 | |
| 2020 6+6 | 7569 |
Solved! Go to Solution.
@Anonymous
if you want to create a column , pls try
Column = MAXX(FILTER('Table','Table'[Period]="2020 Budget"),'Table'[Dollars])-'Table'[Dollars]
if you want to create a measure , pls try
Measure = SUMX(FILTER(ALL('Table'),'Table'[Period]="2020 Budget"),'Table'[Dollars])-sum('Table'[Dollars])
Proud to be a Super User!
@Anonymous - Did the answers provided by @ryan_mayu and @DataInsights meet your needs? If so, please mark an answer or @ me. Thanks.
@Anonymous
if you want to create a column , pls try
Column = MAXX(FILTER('Table','Table'[Period]="2020 Budget"),'Table'[Dollars])-'Table'[Dollars]
if you want to create a measure , pls try
Measure = SUMX(FILTER(ALL('Table'),'Table'[Period]="2020 Budget"),'Table'[Dollars])-sum('Table'[Dollars])
Proud to be a Super User!
@Anonymous, try these measures:
2020 Budget = CALCULATE ( SUM ( Table[Dollars] ), Table[Period] = “2020 Budget” )
2020 6+6 = CALCULATE ( SUM ( Table[Dollars] ), Table[Period] = “2020 6+6” )
Variance - Budget vs 6+6 = [2020 Budget] - [2020 6+6]
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 93 | |
| 69 | |
| 50 | |
| 40 | |
| 39 |