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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Yonas
Employee
Employee

how to do drillthrough and show the dataset in a verical view(Unpivot)?

I have a dataset like this in the main page

 

Name    Age  Gender

Jhon      18     Male

Alice      22     Female

Jonas     21     Male

 

I want to create a drillthrough page on Name column and show the details in a table visual in a vertical manner. for example If i drillthrough on 'Jhon' from the main page, my drillthrough page should look like this

 

Name      Jhon

Age         18

Gender    Male

 

Any ideas?

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

Hi @Yonas

 

1.Go to query editor>Select column"name">Add column >"Duplicate column";

2,Right click on the table name in queries>select "Duplicate";

Annotation 2020-05-05 160903.png

3.Select column "Age","Gender","Name-copy",then choose"unpivot Columns":

Annotation 2020-05-05 161202.png

Then create a relationship between the 2 tables as below:

Annotation 2020-05-05 161410.png

Finally you will see the drillthrough page like:

Annotation 2020-05-05 161519.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @Yonas

 

1.Go to query editor>Select column"name">Add column >"Duplicate column";

2,Right click on the table name in queries>select "Duplicate";

Annotation 2020-05-05 160903.png

3.Select column "Age","Gender","Name-copy",then choose"unpivot Columns":

Annotation 2020-05-05 161202.png

Then create a relationship between the 2 tables as below:

Annotation 2020-05-05 161410.png

Finally you will see the drillthrough page like:

Annotation 2020-05-05 161519.png

For the related .pbix file,pls click here.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

Thank you!! But I got some problems when i drillthrough to the page, I am getting different sort by on my data, for example

if i drillthrough on Jhon, I get like this

 

Attribute   Value

Name        Jhon

Age           23         

Gender     Male

 

If i drillthrough on Alice, I get this

 

Attribute   Value

Age           22

Name       Alice                 

Gender     Female

 

How can i fix the variation on sort, I tried the default on the table visual but it would not work?

 

VasTg
Memorable Member
Memorable Member

@Yonas 

 

There is an idea.. Please vote it.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/32967241-vertical-column-headers-in-matrix

But I found something that might work for you. Create a matrix visual with all the columns under "Rows".

 

Under Row headers.

1. Turn off +/- icons

2. Set "Stepped layout indentation" to 0.

 

image.png

 

Make the page as drillthrough for Name and disable "Keep all filters" if necessary.

 

If it helps, mark it as a solution

Kudos are nice too.

Connect on LinkedIn

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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