cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mellyVK Post Patron
Post Patron

help on value using var / return

I have 2 measures called
1) Sale3mths
2) estimatesale
These 2 measures will change according to the filter applied

is it possible to use var to calculate the % change
estimatesale - Sale3mths * 100 / Sale3mths

 

Any advice is helpful. Thank you 🙂

2 REPLIES 2
Community Support
Community Support

Re: help on value using var / return

@mellyVK ,

 

Generally, you need to convert measure to calculate column using dax you have input:

Percentage =
estimatesale - Sale3mths * 100 / Sale3mths

Community Support Team _ Jimmy Tao

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

mellyVK Post Patron
Post Patron

Re: help on value using var / return

@v-yuta-msft 
as my 2 measure "estimatesale" & "Sale3mths" changes if a user change the filtering, so it alway return me a blank value or wrong value.

however if the "estimatesale" & "Sale3mths" are used separately on it own, the value are correct, but when used in formula

below, the value are wrong

Percentage =
estimatesale - Sale3mths * 100 / Sale3mths

I dont have the file to share as it contain some confidential info, so just wondering if anyone has encounter it before?

Thank so much.

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ Integration Forum Launch

‘Better Together’ Integration Forum Launch

We've launched a how-to forum where you can learn about how Power BI integrates with other Power Platform products.

Top Solution Authors
Top Kudoed Authors