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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Budget Variance

Hello,

 

I am still fairly new to PBI.  I am creating visuals for Budget Variances.  I am given the Actuals and the Budget in the data set.  I created a measure to do so:

OL6 Variance = DIVIDE(SUM('Run Export Action'[Actual (USD)])-SUM('Run Export Action'[OL6 Budget (USD)]),SUM('Run Export Action'[OL6 Budget (USD)]),"N/A")
 
However, the problem I am having is when the Actuals are an amount but the budget is 0.  Any advice would be much appreciated, see below the highlighted section.
Jayguy9_0-1700417183278.png

 

 
3 REPLIES 3
gmsamborn
Super User
Super User

Hi @Anonymous 

 

You didn't say what you would display instead of 0.

 

IF you need a flexible solution, maybe something like this would work.

OL6 Variance = 
VAR _Actual = SUM( 'Run Export Action'[Actual (USD)] )
VAR _Budget = SUM( 'Run Export Action'[OL6 Budget (USD)] )
VAR _Variance =
	DIVIDE(
		_Actual - _Budget,
		_Budget,
		0
	)
VAR _Logic =
	IF(
		NOT ISBLANK( _Actual ),
		IF(
			NOT ISBLANK( _Budget ),
			_Variance,
			"No Budget"
		),
		"No Actual"
	)
RETURN
	_Logic

Budget Variance.pbix

 



Proud to be a Super User!

daxformatter.com makes life EASIER!
Anonymous
Not applicable

Hi this helps.  However, moreso if the budget is 0 and there is an amount in the actuals how would I get the outcome to show 100% instead of 0%?

Hi @Anonymous 

In the above measure, change "No Budget" to 1.



Proud to be a Super User!

daxformatter.com makes life EASIER!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors