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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
JeremyGreen
New Member

Table Formatting

Hello,

I am attemting to flip the axis of my created table in a very specific way and am wondering if it is possible in PBI and how to do so. I have a field called 'Measurement' with the values 0.25 mi, 0.5 mi, and 1 mi which I want as columns, and then a number of demographic variables with specific values for each measurement which I want as rows. 

 

This is the format of my desired result:

PBI Ex 3.png

 

When I add 'Measurement' as a column in a matrix and the demographics into 'values' this is what I get: (demographics into 'rows' outputs a different also wrong result)

PBI Ex 1.png

And when I use a basic table with everything in 'columns' this is the result:

PBI Ex 2.png

Hoping it is an easy fix, any help would be much appreciated!

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @JeremyGreen 

May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

 

vyaningymsft_0-1704871876642.png

 

Once you have created such a matrix, you can turn on Switch values to column in Values under Visualizations pane.

 

vyaningymsft_2-1704871876644.png

 

Measures:

Population with Univ.Degree = 
VAR _sumPopulation =
    SUM ( Population[Population] )
VAR _sumUnvi =
    SUM ( Population[Univ.] )
VAR _degree =
    CALCULATE ( DIVIDE ( _sumUnvi, _sumPopulation, 2 ) )
RETURN
    _degree

Total Population(2023) = 
CALCULATE ( SUM ( Population[Population] ), Population[Year] = 2023 )

Total Population(2028) = 
CALCULATE ( SUM ( Population[Population] ), Population[Year] = 2028 )

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @JeremyGreen 

May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.

 

vyaningymsft_0-1704871876642.png

 

Once you have created such a matrix, you can turn on Switch values to column in Values under Visualizations pane.

 

vyaningymsft_2-1704871876644.png

 

Measures:

Population with Univ.Degree = 
VAR _sumPopulation =
    SUM ( Population[Population] )
VAR _sumUnvi =
    SUM ( Population[Univ.] )
VAR _degree =
    CALCULATE ( DIVIDE ( _sumUnvi, _sumPopulation, 2 ) )
RETURN
    _degree

Total Population(2023) = 
CALCULATE ( SUM ( Population[Population] ), Population[Year] = 2023 )

Total Population(2028) = 
CALCULATE ( SUM ( Population[Population] ), Population[Year] = 2028 )

 

If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Hi @Anonymous ,

 

Thank you so much for this reply, this is what I was looking for! I appreciate the help

Ritaf1983
Super User
Super User

Hi @JeremyGreen 
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors