Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

HOW TO WRITE THIS formula

Hy all I want to write a formula that if this thing is in between 1 & 2 then show the output ,Please tell me how to write this in power bi it will be helpful please reply as fast as you can. , it would be aprreciated.

  • Anonymous a new column, assuming column are from same table

     

    if([DeviationEscalationDate] >= [mfg_ww_begin_datetime] && [DeviationEscalationDate] < = [mfg_ww_end_datetime] , [MFG_YEAR] & "-" & [mfgworkweek] , blank())

9 Replies

  • Anonymous , Need more information

    you can have a measure 

     

    calculate([measure], filter(Table, Table[Value] >=1 && Table[Value] <=2 ))

    • Anonymous's avatar
      Anonymous
      Not applicable

       if DeviationEscalationDate  is between ww.[mfg_ww_begin_datetime] and ww.[mfg_ww_end_datetime] then  show MFG_YEAR+mfgworkweek 

      Please write this in formula and let me know if it can be done or not.

       

      • amitchandak's avatar
        amitchandak
        Super User

        Anonymous a new column, assuming column are from same table

         

        if([DeviationEscalationDate] >= [mfg_ww_begin_datetime] && [DeviationEscalationDate] < = [mfg_ww_end_datetime] , [MFG_YEAR] & "-" & [mfgworkweek] , blank())

  • Anonymous's avatar
    Anonymous
    Not applicable

    amitchandak can you please tell I am not getting all the values I want al the values so I want that if  its in between those values so it should show me values Please tell what should I use si that it should work like in between in tableau.

     

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, Anonymous 

     

    Can you provide a simple PBIX file for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks It has been done.