Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Estoy intentando convertir el siguiente código en un informe paginado de PowerBI. ¿Cuál es la mejor manera? Si tiene valor en (:Sample Date), realice una función DateDiff utilizando Días para contar a partir de la diferencia entre 2 días de los cuales uno son los datos introducidos durante un parámetro cuya fecha seleccionada por el usuario
-----------------------------------------------------------------
si hasvalue ({? Fecha de la muestra}) y luego
DateDiff("d",ITIdtToDate({T_SMPL. SMPL_DT}),{? Fecha de la muestra})
más
DateDiff("d",ITIdtToDate({T_SMPL. SMPL_DT}),{@currentdate})
En su lugar, utilizo una consulta. Ahora, cuando se usa la consulta en el desarrollador sql, se ejecuta bien y muestra el número de días entre pero en el generador de informes. Recibo un problema cast es el de BOLD.
ESCOGER
T_SMPL. SMPL_ID,
T_SMPL. SMPL_MIX_ID,
T_SMPL. SMPL_DT,
TO_DATE(SMPL_DT; en lo sucesivo, «AAAAMMDD») smpl_dt_disp,
CASO EN EL QUE
T_SMPL. SMPL_DT ES NULO O T_SMPL. SMPL_DT=0 ENTONCES SYSDATE
ELSE TO_DATE(T_SMPL. SMPL_DT,'AAAAMMDD') END - sysdate Days_Between,
T_PCC. MIX_ID
DE
SM_ADMIN. T_SMPL T_SMPL
UNIÓN INTERNA SM_ADMIN. T_PCC T_PCC ON T_SMPL. SMPL_MIX_ID = T_PCC. MIX_ID
@ResearchDev , si estamos buscando power bi, entonces tenemos hasonevalue https://p3adaptive.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |