Forum Discussion
Columns visual across report formating
What have you already tried to do and where are you stuck?
- learner033 years agoPost Partisan
I have linked all the tables but not getting the way in which I need the output..like slaes columns month-wise acroass and then Stock due columns month-wise across from another table and then forecast columns across month-wise from agaiin another tabl and also the sumtotal calculation under each column by multiplying by sell price table.
- bolfri3 years agoSolution Sage
You're missing one table dim_calendar that will helps you working with multiple dates:
dim_calendar = CALENDAR( MIN( MIN(FIRSTDATE(Sales[Month]),FIRSTDATE(Forecast[Month])), FIRSTDATE('Stock Due'[Month Due]) ) , MAX( MAX(LASTDATE(Sales[Month]),LASTDATE(Forecast[Month])), LASTDATE('Stock Due'[Month Due]) ) )You can consider Sell Price Table as a dimention table and in your visuals the [Item] column should be from this table.
Your relationship should be like this:
Current Stock Measures:
SOH = SUM('Current Stock'[Stock On Hand])Commited Qty = SUM('Current Stock'[Committed Qty])Available Qt = SUM('Current Stock'[Available Qt])Back ordered = SUM('Current Stock'[Back ordered])Results:Forecast Measures:Forecast = SUM(Forecast[Forecast Qty])Results:Quantity Measures:
Quantity = SUM(Sales[Quantity])Results:Price = AVERAGE('Sell Price'[Price])Quantity with Price =SUMX(DISTINCT('Sell Price'[Item]),[Quantity] * [Price])That's it. With this model you can simply build all you want. 🙂