Forum Discussion
Data from Excel to Power BI
- 8 months ago
Hi abdo132
Create Year + Week columns in the Excel data
Year = 2024 (or last year)
Week = QuarterWeekNumBuild a Date/Week key
Example: Year * 100 + WeekCreate the same key in your current year data
From your Date table (Year + WeekNum)Append the Excel data to current data
Power Query → Append Queries
Ensure same columns: Product, Year, Week, ValueOne fact table
One Date table
Works with all visualsIf you cannot Append
Use a bridge Date/Week table:Year
Week number
Quarter
Relate both datasets to it.Please give headup if the solution/approach is helpful. Thank You!
- 8 months ago
You must use Power Query to normalize the table and create a bridge to your existing Date dimension.
Step 1: Normalize the "Messy" Layout (Unpivot)
- Open Power Query (Transform Data).
- Select your Product Level 2 and Quarter columns.
- Right-click and select "Unpivot Other Columns".
- This collapses your horizontal weeks into two vertical columns: Attribute (Week Number) and Value (The Amount).
- Rename "Attribute" to Week.
Step 2: Create the Date Link
Since your dashboard relies on a Date Table, we need to turn "Week 1" into a real date:
- In Power Query, go to Add Column > Custom Column.
- Use this logic to find the start of the week for 2025-Q4: Date.AddDays(#date(2025,10,1), (Number.From(Text.Select([Week], {"0".."9"}))-1)*7)
- Change the data type to Date.
Step 3: Performance Fix
- In the Model View, create a relationship between your new Date column and your Calendar[Date].
- Update your Matrix visual to use the Date from your Calendar table instead of the raw Excel columns.
Why this fixes the 230s Lag:
Your Performance Analyzer shows that 99% of the load time is the DAX Query (214,502ms). By unpivoting and linking to a proper Date dimension, you allow the engine to use Filter Context instead of forced row-by-row iteration. This should reduce your load time from minutes to milliseconds.
If this transformation fixed your layout and cleared the performance lag, please mark this as an "Accepted Solution" to help others with Excel-to-PBI migrations!
Best regards ,
Vishwanath
Hi abdo132 , Thank you for reaching out to the Fabric Community.
cengizhanarslan , AshokKunwar , ryan_mayu , krishnakanth240 Thanks for your prompt response.
abdo132 I wanted to follow up and confirm whether you’ve had the opportunity to review the information shared by cengizhanarslan , AshokKunwar , ryan_mayu , krishnakanth240 If you have any questions or need further clarification, please don’t hesitate to reach out.
We truly appreciate your engagement and thank you for being an active part of the community.
Best Regards,
Lakshmi.
Hi abdo132 ,
I just wanted to check if your issue has been resolved. If you still have any questions or need help, feel free to reach out I’m happy to assist.
Thank you for being an active part of the community. Looking forward to hearing from you!
Best regards,
Lakshmi