Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Here is the new bee again.
What seems a simple action (at least in EXCEL) is substracting (or multiplying / deviding / adding)) with values seems for me harder then I thought. When I search in the forum and google I see a lot of calcutations based on date fields and with needed filtering.
Situation:
2 tables: Forecated hours and Actual Hours, both with columns per month (apr, may, jun etc). with the number values.
Goal:
Substract Actual minus Forcast per month and presen in visual.
Think I need to create ( in think it needs to be a measure) to capture the outcome of Actual Oct - Forecast Hours.
I'm kind of stuck and perhaps overcomplicating a solution, is there a simple soluton?
Any suggestions?
Brgds Kees
Solved! Go to Solution.
Hi @Kees ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours. The model relationships are shown below.
(2) We can create measures.
Actual - Forecated = MAX('Actual'[Actual Hours])-MAX('Forecated'[Forecated hours])
Actual Oct - Forecast Hours = CALCULATE('Actual'[Actual - Forecated],FILTER('Actual','Actual'[Month]="Oct"))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
You should be using the "Unpivot Other Columns" feature in the Query Editor to flatten the table first. To receive further help, share the two tables (in a format that can be pasted in an MS Excel workbook).
Hi @Kees ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours. The model relationships are shown below.
(2) We can create measures.
Actual - Forecated = MAX('Actual'[Actual Hours])-MAX('Forecated'[Forecated hours])
Actual Oct - Forecast Hours = CALCULATE('Actual'[Actual - Forecated],FILTER('Actual','Actual'[Month]="Oct"))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks! Slightly adjusted, but it brought me on the right track!
Brgds Kees
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
99 | |
88 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |