Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
wina-sunbelle
Regular Visitor

Data Modeling/Filtering Advice Needed

The goal is to be able to visualize each vendor with a bar chart 2024-2025 (actuals) vs 2025-2026 (projections). I am stuck on how I should model this as the data received is according to weeks. As I try to work this, Power Query is blocking me from moving forward because the Column Names are being duplicated. I need to be able to filter by Pizza company. Below is sample data that is the current output. Expected output is noted below. Any advice on how to proceed will be greatly appreciated. ChatGPT suggested demoting the headers / transposing / splitting by delimiter but this ultimately did not result in the expected output. 

 

Sample Data / Current Output

Week StartWeek EndWeek NumPizza Hut 24-25Dominos 24-25Joe's Pizza 24-25Pizza Hut 25-26Dominos 25-26Joe's Pizza 25-26
June 10, 2024June 16, 2024241239875252

353

150
June 17, 2024June 23, 2024257010669200315

150

 

Expected Output **Notice the duplicate column headers - This is currently blocking me***

Week StartWeek EndWeek NumPizza HutDominosJoe's PizzaPizza HutDominosJoe's Pizza
   24-2524-2524-2525-2625-2625-26
June 10, 2024June 16, 2024241239875252353150
June 17, 2024June 23, 2024257010669200315150
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@wina-sunbelle , In Power query Unpivot Other columns (Other than Week Start, Week End, Week Num)
Split by Delimiter , from end -> 2 columns . That will give Pizza Hut and Year separated 

Now you can create a Matrix visual with Type (Pizza Hut and Dominos) , and FY

if you have double  header refer 
https://youtu.be/1e16oHv9kTk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

MasonMA
Super User
Super User

@wina-sunbelle 

Hi, Your expected result cannot be completed in Power Query, but there is a way in reporting. 

Once you are done normalizing data in Power Query with the approach provided in earlier post. 

MasonMA_0-1752081275320.png

Select matrix and use 'outline' for layout under 'Layout and style presets'. Place the right fields in right rows, columns and values as in below picture. 

MasonMA_1-1752082018456.png

 

View solution in original post

2 REPLIES 2
MasonMA
Super User
Super User

@wina-sunbelle 

Hi, Your expected result cannot be completed in Power Query, but there is a way in reporting. 

Once you are done normalizing data in Power Query with the approach provided in earlier post. 

MasonMA_0-1752081275320.png

Select matrix and use 'outline' for layout under 'Layout and style presets'. Place the right fields in right rows, columns and values as in below picture. 

MasonMA_1-1752082018456.png

 

amitchandak
Super User
Super User

@wina-sunbelle , In Power query Unpivot Other columns (Other than Week Start, Week End, Week Num)
Split by Delimiter , from end -> 2 columns . That will give Pizza Hut and Year separated 

Now you can create a Matrix visual with Type (Pizza Hut and Dominos) , and FY

if you have double  header refer 
https://youtu.be/1e16oHv9kTk

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.