The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
78 | |
66 | |
52 | |
51 |
User | Count |
---|---|
121 | |
116 | |
77 | |
64 | |
63 |