The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hellos community,
New here. I am trying with no success with calculate to make variance of values. Actual vs Budget, Actual vs Forecast and Actual vs Previous Year.
All data is in the same column and there are a column for date and other for type of value (forecast, actual or budget). See picture below.
how can I do that?
Solved! Go to Solution.
or if you do not want transformation your table, then you need to write the following measures:
BUDGET = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="BUDGET")
FORECAST = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="FORECAST")
ACTUAL = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="ACTUAL")
or if you do not want transformation your table, then you need to write the following measures:
BUDGET = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="BUDGET")
FORECAST = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="FORECAST")
ACTUAL = CALCULATE(SUM('Table'[ VALUE]),'Table'[VALUE TYPE]="ACTUAL")
You first need to transformation your table for this, see my video, and then you can create simple measures
https://1drv.ms/v/s!AiUZ0Ws7G26Rh0DmynvfwdeQja5G?e=d7efBH
Thanks a lot Ahmedx
User | Count |
---|---|
58 | |
56 | |
53 | |
49 | |
32 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |