Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
20 | |
18 | |
16 | |
13 | |
10 |