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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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