Jump to content

Need help on powerbi project DAX


gundugadu

Recommended Posts

My requirement is to make use of EventCode and Type category finally retrieve Output 2, which is stripping out Type from EventCode  and check if number exists and return true  using DAX

lets assume table name as TBL

EventCode    Type                           Output1             Output 2(Return true if number exist in string else false)

ABC03938      ABC                          03938                          True

ABC49nmkas  ABC                         49nmkas                       True     

RE0943mmjh  RE0                          943mmjh                       True

RE0SAM4B      RE0                          SAM4B                          True

RE0SAMB      RE                            0SAMB                             False

ABC4DEFG      NotWork              ABC4DEFG                      False   

ABCDEFG        NotWork                ABCDEFG                     False

Link to comment
Share on other sites

1 hour ago, gundugadu said:

My requirement is to make use of EventCode and Type category finally retrieve Output 2, which is stripping out Type from EventCode  and check if number exists and return true  using DAX

lets assume table name as TBL

EventCode    Type                           Output1             Output 2(Return true if number exist in string else false)

ABC03938      ABC                          03938                          True

ABC49nmkas  ABC                         49nmkas                       True     

RE0943mmjh  RE0                          943mmjh                       True

RE0SAM4B      RE0                          SAM4B                          True

RE0SAMB      RE                            0SAMB                             False

ABC4DEFG      NotWork              ABC4DEFG                      False   

ABCDEFG        NotWork                ABCDEFG                     False

Output1=Right([EventCode],len(EventCode]-len([Type]) Not sure if this logic works for you.. but what I thought makes sense.

Output2= CONTAINSSTRING([Output1], [Type])

Link to comment
Share on other sites

On 1/12/2021 at 10:34 PM, gundugadu said:

Is there any one who can provide some help/support  on PowerBI project DAX stuff.

Please pm vayyas if you can lend some time. 
 

 

PoweBI la DAX full tough untada or doable?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...