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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vchauhan011
Frequent Visitor

Convert Column values into Rows using DAX

Hello,

 

I need to convert data from one of my columns to new columns. I have two tables A and B. Table A is a measure table which has Total hours, billable hours, non billable hours measures. table B looks similar to the table in the screenshot below. Both These table are part of Power BI Dataset so I am not able to edit them into power query. 

 

Capture.PNG

I want my end result as below table. Staff name field is from different table from the same PBI dataset. Total hours, Billable hours and Non Billable hours fields are measures from the measures table

Capture.PNG

 

Is this something possible to do? 

 

Thank you very much in advance for your help. 

 

1 ACCEPTED SOLUTION
vchauhan011
Frequent Visitor

Hi,

 

I was able to figure out a way to solve the issue I was having. I used the below formula to create new measures. 

 
Leave = Calculate([Total Hours],
'Table name'[Code Description] = "Leave")
 
Thanks. 



View solution in original post

2 REPLIES 2
vchauhan011
Frequent Visitor

Hi,

 

I was able to figure out a way to solve the issue I was having. I used the below formula to create new measures. 

 
Leave = Calculate([Total Hours],
'Table name'[Code Description] = "Leave")
 
Thanks. 



amitchandak
Super User
Super User

@vchauhan011 , to me this seem like a hybrid table 

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors