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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JordanJarron
New Member

2 Way Table

Hello everyone,

 

I am trying to create a two way table in Powerbi,

 

I have a list of projects with tenure and headcount, 

 

The table I would like to create would have:

Columns: Tenure by group (<1 year, >1 year etc) 

Row: Headcount <50, >50, >100 etc

 

The "values" in the table would then be the project names:

 

 <1 Year>1 Year>2 Years
<50 Headcount

Project A

Project E

Project F

 Project D
>50 

Project B

Project G

 
>100 Project C 

 

Is that something possible on Powerbi?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JordanJarron 

 

Thanks for the reply from danextian .

 

Can you accept the output shown in the screenshot? If so, please refer to the following test.

vxuxinyimsft_1-1734921046756.png

 

Sample:

vxuxinyimsft_0-1734920994409.png

 

Create a measure as follows

Measure = CONCATENATEX(FILTER('Table', 'Table'[Headcount Group] = MAX([Headcount Group]) && 'Table'[Tenure Group] = [Tenure Group]), [Project], ",")

 

 Then select the Matrix visualization and place the fields in the corresponding positions.

vxuxinyimsft_2-1734921161910.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Seems possible but no sample data test.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Here to me the important part is the result, the dataset I can rework it, 

 

You can expect raw data to be like that:

 HeadcountHeadcount GroupStart DateTenure Group
Project A30<50January 2024<1 Year
Project B80>50August 2023>1 Year
Project C120>100July 2023>1 Year
Anonymous
Not applicable

Hi @JordanJarron 

 

Thanks for the reply from danextian .

 

Can you accept the output shown in the screenshot? If so, please refer to the following test.

vxuxinyimsft_1-1734921046756.png

 

Sample:

vxuxinyimsft_0-1734920994409.png

 

Create a measure as follows

Measure = CONCATENATEX(FILTER('Table', 'Table'[Headcount Group] = MAX([Headcount Group]) && 'Table'[Tenure Group] = [Tenure Group]), [Project], ",")

 

 Then select the Matrix visualization and place the fields in the corresponding positions.

vxuxinyimsft_2-1734921161910.png

 

Best Regards,
Yulia Xu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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