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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Kyointruder
Frequent Visitor

Add minutes in DateTime Power BI

How to add minutes from column TB_PRAZO_CHAMADO[NR_prazo] + VW_CHAMADO_SUPORTE[DT_Hora_Registro] and store in a new column?
as I'm doing a query via direct query I can't import the data or use the addition of a column via DAX in Power query.
it would have to be even in the Power BI visual itself. I've tried the code above but it doesn't work. the tables have a
relationship with the ID_prazo column.

Kyointruder_0-1659658968513.png

1 ACCEPTED SOLUTION
liuqi_pbi
Resolver III
Resolver III

Hi @Kyointruder 

 

Calculated columns are limited to being intra-row, as in, they can only refer to values of other columns of the same table, without the use of any aggregate functions (Reference doc). So I think it is not possible to use RELATED function to get the minutes values from another table to create a new column in the first table. 

 

You can try creating a measure to add two values with your original DAX Code. 

 

Cheers

If this reply helps solve this problem, please mark it as Solution! Kudos are appreciated too!

 

View solution in original post

5 REPLIES 5
liuqi_pbi
Resolver III
Resolver III

Hi @Kyointruder 

 

Calculated columns are limited to being intra-row, as in, they can only refer to values of other columns of the same table, without the use of any aggregate functions (Reference doc). So I think it is not possible to use RELATED function to get the minutes values from another table to create a new column in the first table. 

 

You can try creating a measure to add two values with your original DAX Code. 

 

Cheers

If this reply helps solve this problem, please mark it as Solution! Kudos are appreciated too!

 

In fact I can rather access the values by "Related" the problem is that in VW_Chamado_Suporte has blank values i.e. they have no deadline. this is the current problem.

Kyointruder_0-1660044467470.png

 

amitchandak
Super User
Super User

@Kyointruder , In Direct query you can use related , if the date table in on many side

 

you can try a column like

 

TB_PRAZO_CHAMADO[NR_prazo] + related(VW_CHAMADO_SUPORTE[DT_Hora_Registro])

 

refer, if needed https://www.youtube.com/watch?v=aA4ROG9dg8A

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Tried this. no work too:

 

Kyointruder_0-1659968055615.png

 

Thanks for the feedback. But I tried to do the recommended, but the result did not come as expected

Kyointruder_0-1659707754450.png

Actual relationship:

Kyointruder_1-1659707887489.png

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors