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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ollie2110
Frequent Visitor

Calculate the variance between two measured points.

image.png

I have the graph pictured above. I want to display the variance % between the data points. The data points above have been calculated as the % share between two variables in a column that has 5 variables. For example the column has factors 1,2,3,4,5. The data points on the above selected graph are the % share between factors 1 and 3. How would I go about this? I've tried with the quick measure function however I've had no luck. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ollie2110 

 

1. Create a measure for Variance % with the following DAX:

([Restrictive Booking %] is the measure you are currently using in your chart)

Variance % = 
VAR CurrentValue = [Restrictive Booking %]
VAR PreviousValue = CALCULATE([Restrictive Booking %], PREVIOUSMONTH('Table'[YearMonth]))
RETURN
IF(NOT ISBLANK(PreviousValue), DIVIDE(CurrentValue - PreviousValue, PreviousValue, 0) * 100, BLANK())

 2. Use Variance % as “Tooltips” for your chart visual.

vxianjtanmsft_0-1726205313319.png

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ollie2110 

 

1. Create a measure for Variance % with the following DAX:

([Restrictive Booking %] is the measure you are currently using in your chart)

Variance % = 
VAR CurrentValue = [Restrictive Booking %]
VAR PreviousValue = CALCULATE([Restrictive Booking %], PREVIOUSMONTH('Table'[YearMonth]))
RETURN
IF(NOT ISBLANK(PreviousValue), DIVIDE(CurrentValue - PreviousValue, PreviousValue, 0) * 100, BLANK())

 2. Use Variance % as “Tooltips” for your chart visual.

vxianjtanmsft_0-1726205313319.png

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @Anonymous , 

 

So I decided to use the Month-on-month Quick measure which seemed to work well. Its an issue of displaying the variance as opposed to calculating it. I Would like to display the variance % in the red-lined areas as opposed to the secondary dark blue line. 

 

ollie2110_0-1726452164201.png

 

Rupak_bi
Solution Sage
Solution Sage

Plz share sample dataset



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.