Forum Discussion

Arvind_123's avatar
Arvind_123
Helper I
2 years ago
Solved

Keyword Comparison with Prior Month

Hi Team,

I have columns like Out Kw, Month Id from this I need to check
if Month Id 12 have any Out Kw which are present in previous Month Id i.e, 11,10 .. so on then Put it on Bucket name as "Others" If there are no match in Out Kw with Previous Month Id i.e, 11,10... so on then put it on bucket name as "New" .
How can I do this on Power BI Dax.

Thanks,

Arvind

  • We want to help you but your description is too vaugue. Please write it again clearly.

    Please als provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
    Also provide the example desired output, with a clear description of the process flow.
    Remember not to share private data ... we don't want you to get into trouble. 😧
    Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
    Try keep it simple and ask one question per ticket.
    You will get a quick response if you put time, care and effort into writing clear problem descriptions.

    Vaugue descriptions can waste your time and ourtime.

    Remember you are gerring free exoert suport help, so please take the effort to ask clear questions with examples.

    Look foward to helping you when the above information is forthcoming

3 Replies

  • We want to help you but your description is too vaugue. Please write it again clearly.

    Please als provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
    Also provide the example desired output, with a clear description of the process flow.
    Remember not to share private data ... we don't want you to get into trouble. 😧
    Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.
    Try keep it simple and ask one question per ticket.
    You will get a quick response if you put time, care and effort into writing clear problem descriptions.

    Vaugue descriptions can waste your time and ourtime.

    Remember you are gerring free exoert suport help, so please take the effort to ask clear questions with examples.

    Look foward to helping you when the above information is forthcoming

    • Arvind_123's avatar
      Arvind_123
      Helper I

      Dear speedramps ,

      sorry to not provided required data. Please find below the table format as expected..

      Input  Output 1
      Month IdOut Kw Month IdCount NEWCount Match
      12A 1232
      12B 1122
      12C    
      12D    
      12E    
      11F Output 2
      11A Month IdCount NEWCount Match
      11B 1232
      11J 1140

       

      Left hand side there are input and right and side there are output as I required.
      There will be more month id but for your reference I gave you only two monthid to achieve this ouput.
      If you see in the table Out kw A and B Present in Month Id 12 as well as in 11 So that  I put on bucket name as "Count Match" or you can say "Match".. and if you see in input table Out Kw C,D and E is New Out Kw which is not present in previous month or month Id so I called it "Count New" or ""New"

       

      Same for to acheive output 2 if Any of Out Kw present in both the month or any previous month or cuurent then take it as "Count Match" or "Match" and If there are no match between any of the month id  then bucket it into "Count New" or "New".
      Now, Hope I cleared what exactly I need as ouput.

      Please let me know if you are need any more info.

      Thanks,

      Arvind