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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DanielKH
New Member

Need help changing the dimension of a measure

Hello, Power BI Forums.

I'm creating a table in Power BI using the data in the image below. 

 

DanielKH_1-1760492435034.png 

 

Like the other images I shared, I want to display dates under each measure. In Tableau, I adjusted the dimensions by moving the measure items between columns and rows, but this doesn't seem possible in Power BI. I tried switching rows and columns in Power Query, but it didn't work because some of the values ​​have different units. Is there a way to do this? Thanks in advance.

 

DanielKH_2-1760492457981.png

 

 

1 ACCEPTED SOLUTION
KNP
Super User
Super User

To expand on the answer from @Shahid12523.

It is not what would be considered best practice modelling in Power BI. 

To do this, in Power Query...

 

KNP_0-1760496219577.png

 

It means instead of simple measures, you have to do this...

 

sales = CALCULATE(SUM(t[Value]), t[Attribute] = "sales_amt")

So for every measure, you end up having to filter based on attribute.

 

If you do what is suggested, and just...

_value = SUM(t[Value])

 

It will work in the matrix...

KNP_1-1760496504754.png

 

But if you ever don't have the attribute, the measure will SUM everything in the value column...

KNP_2-1760496605582.png

This makes it easy to get incorrect answers.

 

Just make sure you understand the approach before complicating the model.

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

View solution in original post

7 REPLIES 7
v-sshirivolu
Community Support
Community Support

Hi @DanielKH ,

I would also take a moment to thank @KNP , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions

 

Hi @DanielKH ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

 

Ahmedx
Super User
Super User

pls try  only in DAX

 

Kedar_Pande
Super User
Super User

  

Power BI requires a specific data structure.

Unpivot your data in Power Query. Select all your measure columns, then go to Transform > Unpivot Columns. This creates an "Attribute" column (measure names) and a "Value" column.

Use the "Attribute" column in your matrix visual's rows or columns to achieve the Tableau-like layout.

@DanielKH

KNP
Super User
Super User

To expand on the answer from @Shahid12523.

It is not what would be considered best practice modelling in Power BI. 

To do this, in Power Query...

 

KNP_0-1760496219577.png

 

It means instead of simple measures, you have to do this...

 

sales = CALCULATE(SUM(t[Value]), t[Attribute] = "sales_amt")

So for every measure, you end up having to filter based on attribute.

 

If you do what is suggested, and just...

_value = SUM(t[Value])

 

It will work in the matrix...

KNP_1-1760496504754.png

 

But if you ever don't have the attribute, the measure will SUM everything in the value column...

KNP_2-1760496605582.png

This makes it easy to get incorrect answers.

 

Just make sure you understand the approach before complicating the model.

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!
Shahid12523
Community Champion
Community Champion

1.Unpivot sales_amt and sales_qty in Power Query to create a single column for values and a column for measure type.

 

2.Use a Matrix visual in Power BI:
- Rows: MeasureType (e.g., sales_amt, sales_qty)
- Columns: dt (dates)
- Values: Value

 

 

Shahed Shaikh
KNP
Super User
Super User

It may be possible but will likely be complicated.

We could debate how easy this should be or, an alternative, would this layout be acceptable?

 

KNP_0-1760494674647.png

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.