Dax code request/help

2avrham

Board Regular
Joined
May 12, 2014
Messages
104
Office Version
  1. 365
Hi all,

It is possible to write dax code for the next request:

If at "status_new" column appears "active" take testerName cell data--> remove the last two characters "G1" (Always G1) and search for the same date at "MTDate" column (I always have two identical dates per tester name one time is for "XXXXG1" testers and second one is for "XXXX" testers),---> After we found this row check tester status if it "Active" leave the cell empty if it something else paste "Active".


Thanks a lot!!!

MTDateTesterNameDayTesterHostnameTesterFamilystatusG1_STATUSMASTER_STATUSMaster_new1STATUS_NEWStatus_updated
4/27/2017 20:00CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 20:00CMT0441G127HA04TCMT0441G7CMTActiveActiveActiveActive
4/27/2017 19:45CMT0441G127HA04TCMT0441G7CMTActiveActiveActiveActive
4/27/2017 19:45CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 19:30CMT044127HA04TCMT0441W7CMTInactiveInactiveInactive
4/27/2017 19:30CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 19:15CMT044127HA04TCMT0441W7CMTInactiveInactiveInactive
4/27/2017 19:15CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 19:00CMT044127HA04TCMT0441W7CMTInactiveInactiveInactive
4/27/2017 19:00CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 18:45CMT044127HA04TCMT0441W7CMTInactiveInactiveInactive
4/27/2017 18:45CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 18:30CMT044127HA04TCMT0441W7CMTInactiveInactiveInactive
4/27/2017 18:30CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 18:15CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 18:15CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 18:00CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 18:00CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 17:45CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 17:45CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 17:30CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 17:30CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 17:15CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 17:15CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 17:00CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 17:00CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 16:45CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 16:45CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 16:30CMT0441G127HA04TCMT0441G7CMTInactiveInactive
4/27/2017 16:30CMT044127HA04TCMT0441W7CMTActiveActiveActive
4/27/2017 16:15CMT0441G127HA04TCMT0441G7CMTActiveActiveActiveActive
4/27/2017 16:15CMT044127HA04TCMT0441W7CMTActiveActiveActive






<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I suggest you do this in Power Query. Given you need to manipulate a different row, I suggest you watch my video here first. It is not the same, but the technique of finding the previous record could help you
 
Upvote 0

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top