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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors