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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JeroenR
Helper V
Helper V

Matrix Stepped Layout first column show values all rows

Hi all,

 

I have the following data loading into my Power BI file:


test.PNG

 

 

 

 

 

 

 

 

 

 

 

 

I have disabled the stepped layout, but how can I make it possible to duplicate the value for the date for each row? So that it will be displayed as followed:

 

DateTimeLocation1Location2
02/05/202212:001232
02/05/202213:0021132
02/05/202214:00365
02/05/202215:004435
02/05/202216:005386
02/05/202217:002332
02/05/202218:00643867

 

I don't mind if I need do to this in Power Query or with a calculated column. But somehow I do not get it possible to get the format as above in my table/matrix.

2 ACCEPTED SOLUTIONS

@JeroenR ,

Have you tried creating two separate measures something like this

Location 1=calculate(<Measure Name>,Location="Location 1")

Location 2=calculate(<Measure Name>,Location="Location 2")

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 

View solution in original post

Hey @JeroenR

My bad, select the location column, go on transform and click on pivot column, select value as Values column ( for you it would be Count)

philouduv_0-1651494634986.png



Best regards,

 




View solution in original post

8 REPLIES 8
philouduv
Resolver III
Resolver III

Hey @JeroenR,

Go on power query and select the 2 column: location 1 and 2 :

philouduv_0-1651493873038.png

Then right click and unpivot column : 

philouduv_1-1651493929729.png


Best regards,

Hi @philouduv,

 

Unfortunately I want to have it in the layout how you displayed it in the first image.

Below is how the data will be loaded into Power Query

2test3.PNG

Hey @JeroenR

My bad, select the location column, go on transform and click on pivot column, select value as Values column ( for you it would be Count)

philouduv_0-1651494634986.png



Best regards,

 




@philouduv thank you! This is exactly what I needed, and with this way I do not need to create several measures.

jaideepnema
Solution Sage
Solution Sage

Hi @JeroenR ,

If you need to provide a drill down functionality then as per my understanding you would not be able to get the same output you are looking for as per your query. However you can use a table instead if the drill down functionality is not required.

Hi @jaideepnema ,

 

thank you for your reply. I don't need the drill down functionality, but when I display it as a table it will not be displayed in my prefferred layout. It will display it then as followed:

2test.PNG

@JeroenR ,

Have you tried creating two separate measures something like this

Location 1=calculate(<Measure Name>,Location="Location 1")

Location 2=calculate(<Measure Name>,Location="Location 2")

 

Please accept this as a solution if your question has been answered !!

Appreciate a Kudos 😀

 

@jaideepnema wauw.. How did I not come up with this.

 

Thanks, it is a bit of setup work but this does the trick!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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