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
NB3
Helper III
Helper III

Data transform

Hi everyone,

 

I can't seem to find a solution to adapt my table,

 

I want to create charts including the name AND the day for each Rep in the first column.

 

I guess I would just need to create another column with the names and fill it down but I'm not able to do that (FYI I am not allowed to change anything in the Excel spreadsheet)

 

Anyone has a solution to do that ?

 

And also, my talk time is supposed to be hours/min/scd (not AM) but Power BI doesn't allow me to have the figure without AM behind it.

 

Thanks a lot

 

Capture.PNG

1 ACCEPTED SOLUTION
LaurentCouartou
Solution Supplier
Solution Supplier

I  would try the following strategy:

 - create a conditional column based on Rep/Day and Dials

if [Dials] = null then [Rep/Day] else null

 - use the FillDown transform on the new column

 - filter the table and only keep the rows where [Dials] <> null

 

Formats in the editor window are not relevant, because you can set them in the data model. However, you may face issues if you have values totalling over 24 hours: the query editor knows about durations (it has a distinct data type for these data) but not the data model and formatting options for Time values do not include [hh]:mm:ss like in Excel.

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

Wondering if @ImkeF has a solution to this in Power Query.

 

You should be able to change the Type of your Talk Time column to Duration to get rid of the AM.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

I tried to change to Duration but I get an error when I do that ... Any idea why ?

 

Thanks @LaurentCouartou it worked perfectly,

 

Thank you

What is your original data format?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler

 

Unfortunately it's written as an hour of the day in the Excel spreadsheet ...

 

Thanks,

LaurentCouartou
Solution Supplier
Solution Supplier

I  would try the following strategy:

 - create a conditional column based on Rep/Day and Dials

if [Dials] = null then [Rep/Day] else null

 - use the FillDown transform on the new column

 - filter the table and only keep the rows where [Dials] <> null

 

Formats in the editor window are not relevant, because you can set them in the data model. However, you may face issues if you have values totalling over 24 hours: the query editor knows about durations (it has a distinct data type for these data) but not the data model and formatting options for Time values do not include [hh]:mm:ss like in Excel.

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.