Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Dear friends.
Have this headbreaker. Working and pondering on it for some time now. I cannot seem to find a good approach. Although the requirement seem to be straight forward.
Have a table with jobs and costs. This includes a dimension (PRODGRP) column.
Now the requirement is for every PRODGRP sum the costs when the project is changed within a certain date range. On job level this is working fine. But it fails on PRODGRP level in case there are multiple jobs changed. See below a demo test report. The table in the left bottom is incorrect when moving the date slicer.
https://1drv.ms/u/s!Ag3hOdYVKV71t0tOoDaG1WQ5c6Hf?e=hC1jiG
Your help will be appricated. Lots of kuddos.
Hi @Mark1982
I took a look at the dataset. Do the costs from the Job table also have to be included? I will base my answer that they do.
Ok the dataset is set up now to be able to use data from the same table
Create the following measure to get what you need.
Job costs =
VAR _JobCost = SUM('Jobs'[Cost])
VAR _ChangeCost = SUM(['Changes'[Cost])
RETURN
_JobCost + _ChangeCost
You can then choose a date range that will change the value of the measure based on the date range
Thanks
Joe
If this post helps, then please Accept it as the solution
Hi Joe,
Many thanks for helping me here.
But (yeah Iam sorry :)) your solution does not seem to work correctly. The requirements is to only show the last cost within the change table or (if non exists) the job cost based on the date created (within period). This also applies to the PRODGRP, whereby the group should only include costs for the related job within that group.
Implementing your chages does not provide the desired output. Have updated the pbix on the file share. You will see job 1 is not correct on that basis.
This is a tricky one.