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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
alejo6429
Regular Visitor

Comparar datos por fecha y hora

Comunidad requiero saber como comparar dos resultado e identificar su variacion por ejemplo validar campo1 de esta fecha 117/11/2022 17:18 con el campo1 de la fecha 19/12/2022 8:53 del promedio de exactitud.

 

Adjunto base de ejemplo

 

campo  promedio_exactitud     f_ejecucion

Campo1             1            17/11/2022 17:18

Campo2             0.96      17/11/2022 17:18

Campo3             0.93      17/11/2022 17:18

Campo4             0.96      17/11/2022 17:18

Campo5             0.94      17/11/2022 17:18

Campo6             0.86      17/11/2022 17:18

Campo7             0.94      17/11/2022 17:18

Campo1             1            17/11/2022 14:25

Campo2             0.96      17/11/2022 14:25

Campo3             0.93      17/11/2022 14:25

Campo4             0.96      17/11/2022 14:25

Campo5             0.94      17/11/2022 14:25

Campo6             0.86      17/11/2022 14:25

Campo7             0.94      17/11/2022 14:25

Campo1             1            18/11/2022 6:19

Campo2             0.96      18/11/2022 6:19

Campo3             0.93      18/11/2022 6:19

Campo4             0.96      18/11/2022 6:19

Campo5             0.94      18/11/2022 6:19

Campo6             0.86      18/11/2022 6:19

Campo7             0.94      18/11/2022 6:19

Campo1             1            19/12/2022 8:53

Campo2             0.96      19/12/2022 8:53

Campo3             0.93      19/12/2022 8:53

Campo4             0.96      19/12/2022 8:53

Campo5             0.94      19/12/2022 8:53

Campo6             0.86      19/12/2022 8:53

Campo7             0.94      19/12/2022 8:53

Campo1             0.87      17/12/2022 17:18

Campo2             0.48      17/12/2022 17:18

Campo3             0.89      17/12/2022 17:18

Campo4             0.88      17/12/2022 17:18

Campo5             0.85      17/12/2022 17:18

Campo6             0.12      17/12/2022 17:18

Campo7             0.65      17/12/2022 17:18

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@alejo6429 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

6 REPLIES 6
alejo6429
Regular Visitor

Comunidad saben de pronto en una medida contar los valores similares.

 

ejemplo 

En la medida diferencia exac. (es una medida) como hago para contar todos los 0.

alejo6429_0-1673924125494.png

 

v-tangjie-msft
Community Support
Community Support

Hi @alejo6429 ,

 

According to your description, here are my steps you can follow as a solution.

(1)  My test data is the same as yours.

(2) We can create calculated columns.

 

Column =
IF (
    [f_ejecucion]
        = MAXX ( FILTER ( 'Table', [campo] = EARLIER ( 'Table'[campo] ) ), [f_ejecucion] ),
    [promedio_exactitud],
    0 - [promedio_exactitud]
)
Test =
SUMX (
    FILTER (
        'Table',
        [campo] = EARLIER ( 'Table'[campo] )
            && [f_ejecucion] >= EARLIER ( 'Table'[f_ejecucion] )
    ),
    [Column]
)

 

(3) Then the result is as follows.

vtangjiemsft_1-1672733731129.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

alejo6429_0-1672753548924.png

Hola, como estas

 Esta es un ejemplo de como quedaria en pbi, la base de datos es esta ( la fecha del 17 hay varios datos con diferente hora, cuando se filtra se suma las dos fechas del 17)

 

Campo promedio_exactitud promedio_similitud promedio_confianza f_ejecucion

Campo1             1            1            0.734295            17/11/2022 17:18

Campo2             0.96      0.974195            0.96904              17/11/2022 17:18

Campo3             0.93      0.992589            0.968895            17/11/2022 17:18

Campo4             0.96      0.987774            0.737092            17/11/2022 17:18

Campo5             0.94      0.979    0.857995            17/11/2022 17:18

Campo6             0.86      0.950846            0.787398            17/11/2022 17:18

Campo7             0.94      0.958086            0.725517            17/11/2022 17:18

Campo8             0.9        0.971024            0.385176            17/11/2022 17:18

Campo9             0.89      0.893602            0.604785            17/11/2022 17:18

Campo10           0.93      0.967    0.944455            17/11/2022 17:18

Campo1             1            1            0.734295            17/11/2022 14:25

Campo2             0.96      0.974195            0.96904              17/11/2022 14:25

Campo3             0.93      0.992589            0.968895            17/11/2022 14:25

Campo4             0.96      0.987774            0.737092            17/11/2022 14:25

Campo5             0.94      0.979    0.857995            17/11/2022 14:25

Campo6             0.86      0.950846            0.787398            17/11/2022 14:25

Campo7             0.94      0.958086            0.725517            17/11/2022 14:25

Campo8             0.9        0.971024            0.385176            17/11/2022 14:25

Campo9             0.89      0.893602            0.604785            17/11/2022 14:25

Campo10           0.93      0.967    0.944455            17/11/2022 14:25

Campo1             1            1            0.734295            18/11/2022 6:19

Campo2             0.96      0.974195            0.96904              18/11/2022 6:19

Campo3             0.93      0.992589            0.968895            18/11/2022 6:19

Campo4             0.96      0.987774            0.737092            18/11/2022 6:19

Campo5             0.94      0.979    0.857995            18/11/2022 6:19

Campo6             0.86      0.950846            0.787398            18/11/2022 6:19

Campo7             0.94      0.958086            0.725517            18/11/2022 6:19

Campo8             0.9        0.971024            0.385176            18/11/2022 6:19

Campo9             0.89      0.893602            0.604785            18/11/2022 6:19

Campo10           0.93      0.967    0.944455            18/11/2022 6:19

Campo1             1            1            0.734295            19/12/2022 8:53

Campo2             0.96      0.974195            0.96904              19/12/2022 8:53

Campo3             0.93      0.992589            0.968895            19/12/2022 8:53

Campo4             0.96      0.987774            0.737092            19/12/2022 8:53

Campo5             0.94      0.979    0.857995            19/12/2022 8:53

Campo6             0.86      0.950846            0.787398            19/12/2022 8:53

Campo7             0.94      0.958086            0.725517            19/12/2022 8:53

Campo8             0.9        0.971024            0.385176            19/12/2022 8:53

Campo9             0.89      0.893602            0.604785            19/12/2022 8:53

Campo10           0.93      0.967    0.944455            19/12/2022 8:53

Campo1             0.87      0.10      0.69      17/12/2022 17:18

Campo2             0.48      0.32      0.08      17/12/2022 17:18

Campo3             0.89      0.15      0.82      17/12/2022 17:18

Campo4             0.88      0.44      0.81      17/12/2022 17:18

Campo5             0.85      0.69      0.30      17/12/2022 17:18

Campo6             0.12      0.43      0.62      17/12/2022 17:18

Campo7             0.65      0.46      0.43      17/12/2022 17:18

Campo8             0.41      0.77      0.53      17/12/2022 17:18

Campo9 0,27 0,24 0,63 17/12/2022 17:18

Campo10           0.88      0.71      0.94      17/12/2022 17:18

alejo6429
Regular Visitor

Hola requiero comparar dos fecha con hora del campo promedio de exactitud ejemplo:

 

Campo1             0.87      17/12/2022 17:18 vs Campo1             1            18/11/2022 6:19

que este sea el resultado     0.87 - 1 = 0.13

@alejo6429 , Based on what I got, you need two datetime slicer, and one of them needs to come from an independent table

 

example

How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg

Compare Categorical Data Using Slicers - Compare two Brands: https://youtu.be/exN4nTewgbc

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
amitchandak
Super User
Super User

@alejo6429 ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.