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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Syndicate_Admin
Administrator
Administrator

Ayuda de Formla

Estoy haciendo un control de calidad de los datos del panel frente a los datos de mi base de datos. Me encontré con un error y no tengo idea de por qué.

Cuadro de mando: Número de incidentes recién abiertos en noviembre de 2024: 1.352

Base de datos: Número de nuevos incidentes: 1.374.

Dashboard formula:

Newly Added = 
VAR SelectedStartDate = MIN(dim_date[Date]) -- Get the start date from the slicer
VAR SelectedEndDate = MAX(dim_date[Date]) -- Get the end date from the slicer
RETURN
    CALCULATE(
        DISTINCTCOUNT(table[IDINC]),
        table[Date_Created] >= SelectedStartDate, 
        table[Date_Created] <= SelectedEndDate
    )

Fórmula SQL:

Select count(distinct IDINC)
from [dbo].[table] 
where [Date created] >= '2024-11-01 00:00:00' and [Date created] < '2024-12-01 00:00:00' 
 

La tabla no tiene filtros adicionales y no tiene duplicados. También jugué con las fechas: por ejemplo, <= 2024-11-30 23:59:59.

Todos los incidentes que no coinciden

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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 Kudoed Authors