Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Convert Tableau expression into power bi DAX

Hi Team, Need some help to convert tableau expression to power bi "ATTR([TSR Created Date _ Today N])", i tried with selectedvalue function but it's not working so can anyone help me how to convert f...
  • Greg_Deckler's avatar
    2 years ago

    Anonymous These usually go better if you provide sample data and expected result but in this case, I believe the equivalent DAX is:

     

    Measure = 
      VAR __Table = SUMMARIZE( 'Table', [TSR Created Date _ Today N] )
      VAR __Result = IF( COUNTROWS( __Table ) > 1, "*", MAXX( __Table, [TSR Created Date _ Today N] ) )
    RETURN
      __Result