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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
enswitzer
Helper III
Helper III

Table Creation

I am looking to create a table based on an input of data that I have and need it to be able to change based on the project selected. See the screenshot below for example of what I'm looking to do. 

 

(CURRENT TABLE INPUT) 
Project IDProject TitlePhase 1Phase 2Phase 3 
1Project 11/1/20202/1/20203/1/2020 
2Project 25/1/20206/1/20207/1/2020 
3Project 38/1/20209/1/20209/15/2020 
4Project 410/1/202011/1/20201/1/2021 
      
Desired Output; want to be able to change selected project
Project 1(sample 1)  
PhaseDate    
Phase 11/1/2020    
Phase 22/1/2020    
Phase 33/1/2020    
      
Project 2(sample 2)  
PhaseDate    
Phase 15/1/2020    
Phase 26/1/2020    
Phase 37/1/2020    
      
1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @enswitzer ,

 

It is suggested to try the following operations in Power Query Editor.

 

1.Select Project ID and Project Title columns, and select Unpivot other columns.

1.png2.png

 

2.Rename the new columns.

3.png

 

3.Then select Close&Apply and create these visuals. Then you can select the Project ID through the slicer to display the output.

4.png5.png

 

You can check more details from here.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @enswitzer ,

 

It is suggested to try the following operations in Power Query Editor.

 

1.Select Project ID and Project Title columns, and select Unpivot other columns.

1.png2.png

 

2.Rename the new columns.

3.png

 

3.Then select Close&Apply and create these visuals. Then you can select the Project ID through the slicer to display the output.

4.png5.png

 

You can check more details from here.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lkalawski
Resident Rockstar
Resident Rockstar

Hi @enswitzer

The first thing you should do is unpivot Phase data:

Select 3 columns and click Unpivot Columns in the Transform tab. Then change the name of column Attribute to Phase.

lkalawski_0-1599050148538.png

Next step is to create matrix with slicer. Add new slicer and put in the Field Project Title.

Add Matrix visual and to the Column field add Phase column and to the Value add Value column (change name to "Date).

lkalawski_2-1599050354991.png

 

The result:

 

lkalawski_1-1599050311614.png



_______________
If I helped, please accept the solution and give kudos! 😀

 

 

amitchandak
Super User
Super User

@enswitzer , Unpivot the data and display in the matrix

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

 

On matrix try Show on Row

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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