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.
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%
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 |
---|---|
99 | |
99 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |