Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello everyone
I'm wondering if somebody can give me light to my issue how to do or if its even possible to query. Basically I have two tables, "rank failure" where are all the periods of times that the principal system had problems in the connection (Start of the issue, End of the issue)
and the principal table "Principal" where i have all the tickets that have been made, with there respective (Created date and Resolution Date).
The thing i would like to do is add a column on principal, column that classify if the ticket have passed through the error range. ex. "OK", "FAILURE", or made a new table with all the tickets that have passed through the error range.
I try using If formula
Any help is really appreciated. Thanks a lot
Maria J.
Solved! Go to Solution.
@alfonsoasenjo , Create a new column in principal like
if(countx( filter('rank failure', principal[created]< 'rank failure'[Inicio]
&& 'rank failure'[Inicio]<principal[resolution]
||principal[created]>'rank failure'[Inicio]
&& principal[created]<rank failure[Fin]),'rank failure'[Inicio] )+0 >0,"Failure","OK")
@alfonsoasenjo , visual in not clear, but seem like one part of if is date and another one 0. they are two different data type.
Make 0 as blank()
yes i used this:
@alfonsoasenjo ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I could solve it somehow, by replacing the column of "principal[resolution]", there where blank data of the tickets that have not been resolved yet. i replace the blank data with 0. I dont know if you have a better solution for it. Thanks you for the help
just replace the principal[resolution] with principal[Fecha de Resolución]
@alfonsoasenjo , Are Inicio and fin have datatype date or text. Make sure all dates have datatype date
yes, all the columns have datetype format
@alfonsoasenjo , Create a new column in principal like
if(countx( filter('rank failure', principal[created]< 'rank failure'[Inicio]
&& 'rank failure'[Inicio]<principal[resolution]
||principal[created]>'rank failure'[Inicio]
&& principal[created]<rank failure[Fin]),'rank failure'[Inicio] )+0 >0,"Failure","OK")
Hello! thank you for the prompt reply,
I used the formula that you suggest, but I still have the syntax error. "DAX comparison operations do not support comparison values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values". Just to clarify all dates in both tables are in DATE/HOUR format.
Thanks you for the help, I feel Ill get it soon