Forum Discussion
cpunnett
Helper II
8 years agoCalculating a variance
I'm trying calculate a variance and need help please. I'm trying to take submissions from Year 2018 subtract submissions from 2017, then divide that number by submissions from 2017. My problem is w...
danextian
Super User
8 years agoPlease provide a sample importable data, not an image. I would like to test the formula.
cpunnett
Helper II
8 years agoHow can I provide that?
- danextian8 years ago
Super User
You may paste a data table here or post a link to your sample data.
- cpunnett8 years ago
Helper II
This is my query
Issue Variance = VAR Issued = SUM('SubmissionActivity'[Issued]) VAR Issue2017 = CALCULATE(Issued, 'SubmissionActivity'[Year] = 2017) VAR Issue2018 = CALCULATE(Issued, 'SubmissionActivity'[Year] = 2018) RETURN DIVIDE (Issue2018 - Issue2017, Issue2017)Here is sample data with current and expected results
DAX Result What it should be Month Product Year Issued Issue Variance Issue Variance 1-Jan Remodeler Excl. Exist Structure - Residential 2018 27 0 0.50 1-Jan Remodeler Excl. Exist Structure - Residential 2017 18 0 0.80 1-Jan Remodeler Excl. Exist Structure - Residential 2016 10 0 -0.29 1-Jan Remodeler Excl. Exist Structure - Residential 2015 14 0 I appreciate your time
- cpunnett8 years ago
Helper II
I've figured out that the variables Issue2017 and Issue2018 are equal, which is why I'm getting zeroes. But I can't seem to get correct. Any Ideas?