Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have the next matrix with scrap type and stations and YTD and a single select slicer for the date.
When I choose the date I should see the YTD until the selected date, but if I don't have any value for Scrap or station in the selected date it shows 0 when it should show the YTD until that day. Here is the formula:
YTD =
CALCULATE(
divide(
Sum(
'Scrap'[Scrap_Cost]
),
sum(
Cost[day_Cost]
)
)+0,
DATESYTD(
'Calendar'[Date]
)
)
Here is the expected output and sample tables:
Cost table
|
Scrap table
|
Solved! Go to Solution.
Hi @RaulB ,
According to your description, I create a sample by the data you provided, but it can return a correct value.
I attach my sample below for your reference. If you need more help, please feel free to contact me.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RaulB ,
According to your description, I create a sample by the data you provided, but it can return a correct value.
I attach my sample below for your reference. If you need more help, please feel free to contact me.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you
Scrap I should be 0.71% because that's what it is in the previous day, but it is 0.00%
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |