User Profile
ImaDAXman
Frequent Visitor
Joined 9 years ago
User Widgets
Contributions
Re: Aggregate $Amt from fact table based on dynamic date range from a different fact table
Thanks for the additional suggestion. That was the first thing I checked. Great minds think alike :) I ended up figuring out the issue - the source data coming from the system randomly was inserting a space in front of some of the RO #'s so once I went in and used the transform > trim feature everything is pulling over now. Thanks again for all your help!1.8KViews0likes0CommentsRe: Aggregate $Amt from fact table based on dynamic date range from a different fact table
Getting close! Looks like I need to clean up the source data a bit and tinker with the date ranges (it's not including RO's completed on the start/end dates but the ones in between are pulling in at least) but I'm getting some values at least. Thank you!1.8KViews0likes2CommentsAggregate $Amt from fact table based on dynamic date range from a different fact table
I've been struggling with this one for a while. I know the solution is going to be fairly easy and I'll be kicking myself for having spent such a long time blanking on this. Here is what I'm trying to accomplish: Calculate the total 'recon' (reconditioning) spend by vehicle. For each Stock #, I need the total RO $Amt from type 'Internal' only from FactServHist but only include RO's that fall between the Recon Start and Recon End dates found in FactInventory (inclusive of start/end dates). I have 5 tables involved in this example: Date (includes Date, DateSK in text format, day, year, month, qtr, etc) DimInventory (houses stock#, dealer that owns it, and all info regarding the vehicle. Stock # is unique for this table) FactInventory (houses workflow-driven data including process start and complete dates) FactServHistory (houses every Repair Order - RO# $Amt, date complete, Stock#, etc) RO Ref (reference table created from FactServHist - Stock# lookup by RO#- this example doesn't show it but in the source data the RO detail is stored by line item and so there are several rows per RO)Solved1.8KViews0likes5CommentsRe: Aggregate $Amt from fact table based on dynamic date range from a different fact table
I've been struggling with this one for a while. I know the solution is going to be fairly easy and I'll be kicking myself for having spent such a long time blanking on this. Here is what I'm trying to accomplish: Calculate the total 'recon' (reconditioning) spend by vehicle. For each Stock #, I need the total RO $Amt from type 'Internal' only from FactServHist but only include RO's that fall between the Recon Start and Recon End dates found in FactInventory (inclusive of start/end dates). I have 5 tables involved in this example: Date (includes Date, DateSK in text format, day, year, month, qtr, etc) DimInventory (houses stock#, dealer that owns it, and all info regarding the vehicle. Stock # is unique for this table) FactInventory (houses workflow-driven data including process start and complete dates) FactServHistory (houses every Repair Order - RO# $Amt, date complete, Stock#, etc) RO Ref (reference table created from FactServHist - Stock# lookup by RO#- this example doesn't show it but the source data is more complex and RO# in FactServHist is not unique so I had to create and index to use as PK/FK1.8KViews0likes0Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.