Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Matrix Stepped Layout first column show values all rows

Hi all,

 

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


 

 

 

 

 

 

 

 

 

 

 

 

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.

  • Anonymous ,

    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 ğŸ˜€

     

  • Hey Anonymous, 

    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)



    Best regards,

     




8 Replies

  • Hi Anonymous ,

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      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:

      • jaideepnema's avatar
        jaideepnema
        Solution Sage

        Anonymous ,

        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 ğŸ˜€

         

  • Hey Anonymous,

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

    Then right click and unpivot column : 


    Best regards,

    • Anonymous's avatar
      Anonymous
      Not applicable

      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

      • philouduv's avatar
        philouduv
        Resolver III

        Hey Anonymous, 

        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)



        Best regards,