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.
Hello All, I need a help with following: if the PackageCode appears more than one time in the row "Test Status" shall show first occurance as "Test" and the rest for the same PackageCode as "Retest" as shown. I have tried this code, but it turns everything to "Retest". I have simulated what I expect in Excel as an example below
Solved! Go to Solution.
@Anonymous , try like as new column
if(countx(filter(Table, table[package code] =earlier(table[package code] ) && table[StatechangeTS] <=earlier(table[StatechangeTS] )),table[package code] )=1, "Test","Retest")
With EARLIER you are comparing earlier packagecodes, not by date.
Can you post your data as csv, or ad your pbix? It will make it easier to create sample code for you.
@Anonymous , try like as new column
if(countx(filter(Table, table[package code] =earlier(table[package code] ) && table[StatechangeTS] <=earlier(table[StatechangeTS] )),table[package code] )=1, "Test","Retest")
Thanks again for response,
How can I put the filter in the script that it takes ONLY results for Static tester in the calculation? so when the same module appears in static and dynamic tester, one of them does not count as restest, cause it is being ignored.
PS: without filtering out the "Destination" with column filter option in the table top
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 |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |