Hi @Syed Saleem Peera ,
What happens when you attempt to refresh the datasets from your SQL Source? Can you provide a screenshot of your SQL Instance and specifically the view for vFactSales?
For me and I believe the Author of this post, the issue is when I update the server connections in the pbix to my SQL instance (local, azure, vm, etc), the queries in the pbix for "sales" and "sales order" fail because the vFactSales view doesn't exist or isn't included in any of the current AdventureWorks DW versions available for download. The other queries complete with no issue because the tables exist.
I resolved the missing vFactSales view for my instance by creating it in the AdventureWorks DW with what I believe the logic is and it works in the pbix report. I'll post the SQL below but please keep in mind this is my interpretation of what I think the view is, not what might actually be used in the Power BI Author's version or what the Author has in their AdventureWorks SQL database. There may be additional transformations that I am not aware of and did not apply to this view.
USE [AdventureWorksDW2022]
GO
/****** Object: View [dbo].[vFactSales] Script Date: 2024-08-14 6:54:27 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vFactSales]
AS
SELECT
'Internet' AS Channel
,[ProductKey]
,[OrderDateKey]
,[DueDateKey]
,[ShipDateKey]
,[CustomerKey]
,NULL AS ResellerKey
,[PromotionKey]
,[CurrencyKey]
,[SalesTerritoryKey]
,NULL AS EmployeeKey
,CONCAT(SalesOrderNumber,' - ', SalesOrderLineNumber) AS SalesOrderLineKey
,[SalesOrderNumber]
,[SalesOrderLineNumber]
,[RevisionNumber]
,[OrderQuantity]
,[UnitPrice]
,[ExtendedAmount]
,[UnitPriceDiscountPct]
,[DiscountAmount]
,[ProductStandardCost]
,[TotalProductCost]
,[SalesAmount]
,[TaxAmt]
,[Freight]
,[CarrierTrackingNumber]
,[CustomerPONumber]
,[OrderDate]
,[DueDate]
,[ShipDate]
FROM [AdventureWorksDW2022].[dbo].[FactInternetSales]
UNION
SELECT
'Reseller' AS Channel
,[ProductKey]
,[OrderDateKey]
,[DueDateKey]
,[ShipDateKey]
,NULL AS CustomerKey
,[ResellerKey]
,[PromotionKey]
,[CurrencyKey]
,[SalesTerritoryKey]
,[EmployeeKey]
,CONCAT(SalesOrderNumber,' - ', SalesOrderLineNumber) AS SalesOrderLineKey
,[SalesOrderNumber]
,[SalesOrderLineNumber]
,[RevisionNumber]
,[OrderQuantity]
,[UnitPrice]
,[ExtendedAmount]
,[UnitPriceDiscountPct]
,[DiscountAmount]
,[ProductStandardCost]
,[TotalProductCost]
,[SalesAmount]
,[TaxAmt]
,[Freight]
,[CarrierTrackingNumber]
,[CustomerPONumber]
,[OrderDate]
,[DueDate]
,[ShipDate]
FROM [AdventureWorksDW2022].[dbo].[FactResellerSales]
GO