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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.