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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
carlosayala_9
Frequent Visitor

Columna calculada

Hola queria consultarles, hice una medida que me da la diferencia en dias sobre dos fechas (DATEDIFF) pero cuando pongo la medida dentro de la tabla me genera un solo valor repetido para todas y no me la acomoda por el filtro que estoy aplicando en la tabla y distribuye la cantidad......alguno que me pueda ayudar??

 

¡Gracias!

 

carlosayala_9_0-1663810131317.png

carlosayala_9_1-1663810145621.png

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@carlosayala_9 , In such case the most suitable is a new column

 

datediff([Porject Start Date], [project End Date], day)

 

If you create sumx measure , it should not show in table

 

Sumx(Table, datediff([Porject Start Date], [project End Date], day))

 

or

 

Sumx(Values(Table[PruBa3]) ,calculate( datediff(Min([Porject Start Date]), Max([project End Date]), day)) )

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

View solution in original post

Anonymous
Not applicable

Hi @carlosayala_9 ,

 

Does the above reply solve the problem?

If it works, please consider to mark it as a solution.

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @carlosayala_9 ,

 

Does the above reply solve the problem?

If it works, please consider to mark it as a solution.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@carlosayala_9 , In such case the most suitable is a new column

 

datediff([Porject Start Date], [project End Date], day)

 

If you create sumx measure , it should not show in table

 

Sumx(Table, datediff([Porject Start Date], [project End Date], day))

 

or

 

Sumx(Values(Table[PruBa3]) ,calculate( datediff(Min([Porject Start Date]), Max([project End Date]), day)) )

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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