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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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.

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

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.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors