Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi guys,
Got a basic question, first Calculated Column "Celular vs Ingreso" checks the difference between 2 dates :
-Celular vs Ingreso = IF('KPI'[Fecha solicitud de ingreso]<'KPI'[Celular & Linea Resolucion],DATEDIFF('KPI'[Fecha solicitud de ingreso],'KPI'[Celular & Linea Resolucion],DAY),(-1)*DATEDIFF('KPI'[Celular & Linea Resolucion],'KPI'[Fecha solicitud de ingreso],DAY))
Second Column "-Celular" should return a status: if first "Celular vs Ingreso" column is greater than 0 days, should be "NO OK", if the column is less than 0 should be OK.
-Celular = IF('KPI'[-Celular vs Ingreso]>0,"NO OK", "OK")
The problem is there are some date columns that have no dates, so the value is null, so column has blank values, this is not a problem for column "Celular vs Ingreso", it returns no values for those null dates. But when advancing with the second calculated column "-Celular" the if statement is bringing me a OK as if there would be a zero value on it, and should stay blank
Already tryied with = IF(NOT(ISBLANK([-Celular vs Ingreso]>0,"NO OK", "OK"))) but i'm getting an error.
Any ideas on how to get this done?
Thanks & Regards!
Solved! Go to Solution.
Thanks for the reply. Still getting blanks, found a way arround thanks to Vvelvarde.
-Celular = IF('KPI'[-Celular vs Ingreso]<>BLANK(),IF('KPI'[-Celular vs Ingreso]>0,"NO OK", "OK"))
Thanks anyway!!!
Regards!
Hi @franorio!
I'm also quite new to Power BI but I hope this helps! I think if you use the following DAX code this might work:
IF('Table3'[Column1] > 0, "OK") & IF('Table3'[Column1] < 0, "NO OK").
I tested it with some test values, and it gave me what I think you were trying to get!
Thanks for the reply. Still getting blanks, found a way arround thanks to Vvelvarde.
-Celular = IF('KPI'[-Celular vs Ingreso]<>BLANK(),IF('KPI'[-Celular vs Ingreso]>0,"NO OK", "OK"))
Thanks anyway!!!
Regards!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
87 | |
84 | |
66 | |
49 |
User | Count |
---|---|
140 | |
114 | |
110 | |
59 | |
59 |