Forum Discussion
Anonymous
7 years agoNot applicable
Stacked bar chart based off measure values
I am trying to create a 100% stacked column based off the results of the measure below: I have created a DistinctCount measure to give me a count of items per Par Location ID(screenshot below). I hav...
v-yulgu-msft
Microsoft Employee
7 years agoHi Anonymous,
Please provide some sample data in source table and the DAX formula for those measures, [DelPerWeek], [DaysToTurn],
[HotSpinCalc] and [ColdSpinCalc].
How to Get Your Question Answered Quickly
Regards,
Yuliana Gu
Anonymous
7 years agoNot applicable
DelPerWeek = MIN('Cart Locations Delivery Schedule'[Delivery Days])
DaysToTurn = [DATERANGE]/[NumOfOrders]
DATERANGE = DATEDIFF(MAX('2_Bin_Query'[Demand Date]), TODAY(), DAY)
ColdSpinCalc = 5*(1+(7/[DelPerWeek])+2)
HotSpinCalc = (1+(7/[DelPerWeek])+2)
NumOfOrders = CALCULATE(COUNT('2_Bin_Query'[Item Number]), ALLEXCEPT('2_Bin_Query', '2_Bin_Query'[Item Number], '2_Bin_Query'[Par Location ID]))
I have attached the source data in an excel table, if you want me to attach the PBIX file instead, let me know. Also, thanks for the article to get answers quickly. I was thinking if there is a way to create a reference table for the outputs of the original IF statement, that might be the way to go. Not sure if that is the best way to go about solving this, so I am open to whatever solutions you may recommend. Let me know if you have any additional questions. Thanks
- Anonymous7 years agoNot applicable
bump