cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Variance Calculation Not Working (Error thinks there is text)

Good morning

 

Another newbie here...

 

I've started building some financial reporting dashboards in Power BI and want to show the actual vs forecast result for a given month, but when I insert a measure to do this (CYActvsForecast= [CYTotal] - [FcastTotal]), the visual won't display as it thinks there are text values in there somewhere. 

Jillith_1-1596017819451.png

 

As you can see fromt the screenshot below all the values in CYTotal and FcastTotal are numerical, so I don't know what is causing this error! Has anyone seen anything like it before or have any idea how I would go about troubleshooting this?

Jillith_0-1596017650559.png

Many thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

@Jillith , You are trying to use sum on a text datatype. Please change the data type and try . Or change in power query

 

Data Format New Rib.png



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
Super User IV
Super User IV

@Jillith , You are trying to use sum on a text datatype. Please change the data type and try . Or change in power query

 

Data Format New Rib.png



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Thanks for getting back to me. I forgot to mention that both fields used in the variance calculation are measures - the format section does say it is text but all options are greyed out so I can't change anything...

 

Jillith_0-1596021854536.png

 

OK - I've got this working by adding value () around my measures used in the variance calculation after searching on why measures are formatted as text/how to change them.

 

I couldn't find a definitive answer on why this was happening but it's solved now so thank you. 

Helpful resources

Announcements
November Update

Check it Out!

Click here to read more about the November 2020 Updates!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform October Community Highlights

Check out the top community contributors across all of the communities

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors