Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi,
I have a table (A) with titles of books and their reading time as duration.
I have a second table (B) with reading times as provided by the publisher.
The relationship between the tables is based on table and is many to one.
Table A looks like this:
customer 1 - bookA - reading time (duration)
customer 2 - bookA - reading time (duration)
customer 3 - bookB - reading time (duration)
Table B looks like this:
bookA - expected reading time (duration)
bookB - expected reading time (duration)
bookC - expected reading time (duration)
In the Power Query editor I already transformed both of the reading time columns to duration by using this:
Tabel1 = Table.TransformColumnTypes(Tabel1_Table,{{"reading time", type time}}),
DateTimeToDuration = Table.TransformColumns(Tabel1,{{"reading time", each _ - #time(0,0,0), type duration}})
With the FORMAT function I transformed to reading time from table A to a text value and calculated the average with:
Now I also need to format the expected reading times from table B. But since those are just 1 per book title it has no use to use something like AVERAGE. Something like ALL in combination with FORMAT gives me the above in the title of this post mentioned error.
Any ideas?
Many thanks!
Solved! Go to Solution.
HI @Anonymous,
AFAIK, current power bi does not support duration type of values.
I'd like to suggest you convert it to total second and write a calculated field to transform the total second to text value with duration strings. (you can aggeration on the total second field)
Regards,
Xiaoxin Sheng
HI @Anonymous,
AFAIK, current power bi does not support duration type of values.
I'd like to suggest you convert it to total second and write a calculated field to transform the total second to text value with duration strings. (you can aggeration on the total second field)
Regards,
Xiaoxin Sheng
@Anonymous you need to add this as a column to Format value on Table B, if you adding as a measure then use some aggregated function like MIN or MAX and then you will not get this message.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
118 | |
101 | |
71 | |
61 |