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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RobinH
Helper I
Helper I

Change day to hours in specific rows

Hello community

 

did not find a fitting solution.

I have a table with days and hours mixed. i need to show all values in hours.

Samplefile:

https://1drv.ms/x/s!AhAHMdCrj8gdgrZSeLVCqQZvMOQ7Ww?e=pPU8bC

 

The solution would be something like "if unit is "Days" then multiply column "today/EoY/jan/feb/..." by 8.

Will convert the negative values into positive.

I could do it by hand in the sourcefile (Excel), but it defenitely would be more convinient if it is possible in PBI.

 

Thank you all

regards Robin

1 ACCEPTED SOLUTION
serpiva64
Solution Sage
Solution Sage

Hi,

if you want to achieve something like this:

serpiva64_0-1646056701444.png

You have to:

- select the 2 first column and unpivot other colums

serpiva64_1-1646056785485.png

- add a custom column

serpiva64_2-1646056818048.png

- insert the absolute value

serpiva64_3-1646056868409.png

and that's done.

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

 

 

 

View solution in original post

2 REPLIES 2
serpiva64
Solution Sage
Solution Sage

Hi,

if you want to achieve something like this:

serpiva64_0-1646056701444.png

You have to:

- select the 2 first column and unpivot other colums

serpiva64_1-1646056785485.png

- add a custom column

serpiva64_2-1646056818048.png

- insert the absolute value

serpiva64_3-1646056868409.png

and that's done.

 

If this post is useful to help you to solve your issue consider giving the post a thumbs up 

 and accepting it as a solution !

 

 

 

 

Thank you very much, workt great 👍

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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