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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.