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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Alicia96
New Member

matrix visual

I have the followig two csv files in power bi


Table 1:

DateRefProductQuantityLot
10/13/2023SI2502Tray26a1
10/3/2023SO3214Nut36d2
10/3/2023SO3214Screw20s6
10/3/2023SO3214Sheet50s5
10/3/2023SI2489Tray100a1
9/29/2023SI6535Sheet50s5
9/29/2023SO5789tray41a1
9/27/2023SO3652Rack65r4
9/26/2023SI5420Nut100d2
9/22/2023SO3476Sheet36s5
9/22/2023SO3476tray30a1


Table 2:

Dateprodsorderqtyrqty
10/15/2023RackSO56585430
10/3/2023NutSO32143664
10/3/2023ScrewSO32142060
10/3/2023SheetSO321450250
9/29/2023SheetINV50300
9/29/2023traySO57894144
9/27/2023RackSO36526584
9/26/2023NutINV100100
9/22/2023SheetSO347636250
9/22/2023traySO34763085

 

I want a matrix visual in Power BI as follows:

Date Ref Product Quantity Lot rqty
10/3/2023 SO3214 Nut 36 d2 64
10/3/2023 SO3214 Screw 20 s6 60
10/3/2023 SO3214 Sheet 50 s5 250
9/29/2023 SO5789 tray 41 a1 44
9/27/2023 SO3652 Rack 65 r4 84
9/22/2023 SO3476 Sheet 36 s5 250
9/22/2023 SO3476 tray 30 a1 85

 

but i am getting the following output

Date prods order qty rqty
10/3/2023 Nut SO3214 36 64
10/3/2023 Nut SO3214 36 60
10/3/2023 Nut SO3214 36 250
10/3/2023 Screw SO3214 20 64
10/3/2023 Screw SO3214 20 60
10/3/2023 Screw SO3214 20 250
10/3/2023 Sheet SO3214 50 64
10/3/2023 Sheet SO3214 50 60
10/3/2023 Sheet SO3214 50 250
9/29/2023 tray SO5789 41 44
9/27/2023 Rack SO3652 65 84
9/22/2023 Sheet SO3476 36 250
9/22/2023 Sheet SO3476 36 85
9/22/2023 tray SO3476 30 85
9/22/2023 tray SO3476 30 250

 

The rqty column is showing duplicate values.  

 

Any help would be appreciated.
Thank you.

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Alicia96 ,

Try use merge query in power query editor:

vcgaomsft_1-1698130632673.png

vcgaomsft_0-1698130596174.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @Alicia96 ,

Try use merge query in power query editor:

vcgaomsft_1-1698130632673.png

vcgaomsft_0-1698130596174.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.