Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everyone,
I have a question about calculating the variance of facts from different columns.
An example, I want to calculate the variation percentage between january and february in each branch, and show the result in a third column.
I attach n example to illustrate my doubt.
Kind regards
Solved! Go to Solution.
Guess this will help you: CALCULATE Function (DAX)
In your case it will be something like:
test2 = (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201709") - (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201702")) ) / (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201702")) * 100
Guess this will help you: CALCULATE Function (DAX)
In your case it will be something like:
test2 = (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201709") - (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201702")) ) / (CALCULATE(SUM('Fact - Journals'[ACCOUNTED_AMOUNT]);'Dim - Period'[Fiscal Month] = "201702")) * 100
User | Count |
---|---|
85 | |
82 | |
66 | |
53 | |
47 |
User | Count |
---|---|
101 | |
51 | |
41 | |
39 | |
38 |