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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Prasanthke
Frequent Visitor

DAX FORMULA

How to create the calculated columns like break, production which contains only break time, production using the below mentioned data against each user.

 

User NameTask TypeActual Handling Time (min)
anandhu.krishna.v.sProduction32.1667
anandhu.krishna.v.sOtherProductive30.5
anandhu.krishna.v.sBreak30
anandhu.krishna.v.sBreak30
anandhu.krishna.v.sProduction448.2167
prasanth.k.eProduction300.9833
prasanth.k.eProduction187.1833
prasanth.k.eProduction0.2
prasanth.k.eBreak60.45
prasanth.k.eOtherProductive18
1 ACCEPTED SOLUTION

Calculated columns don't achieve this effect, you can instead use PowerQuery's pivot function to achieve it. 

 

For example:

 

xifeng_L_0-1732296108786.png

 

Then get the result you want.

 

xifeng_L_1-1732296150071.png

 

Finally, just load into PowerBI.

 

xifeng_L_2-1732296224459.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

View solution in original post

3 REPLIES 3
xifeng_L
Super User
Super User

Hi @Prasanthke ,

 

Is this what you wanted?

 

xifeng_L_0-1732294134573.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Prasanthke
Frequent Visitor

User NameProductionOtherProductiveBreak
anandhu.krishna.v.s480.383430.560
prasanth.k.e488.16661860.5

 

I need to have data in the above format in the calculated columns

Calculated columns don't achieve this effect, you can instead use PowerQuery's pivot function to achieve it. 

 

For example:

 

xifeng_L_0-1732296108786.png

 

Then get the result you want.

 

xifeng_L_1-1732296150071.png

 

Finally, just load into PowerBI.

 

xifeng_L_2-1732296224459.png

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)