Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Text

Hi, which measure can i use in Power BI Desktop if the text in a table is empty, than use another use another text? 

4 Replies

  • DOLEARY85's avatar
    DOLEARY85
    Resident Rockstar

    Hi,

     

    Can you expand on this a bit more and maybe post some sample data? It sounds like you just want to use an IF statement in your measure to show one field but replacement text if it's blank. if so something like the below should work:

     

    IF(ISBLANK('Table'[Field]),"Replacement Text", 'Table'[Field])

     

    If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi, thank you. But with this formule i can select only measures and not tables. Do you know how to select a table with this measure? 

       

      • DOLEARY85's avatar
        DOLEARY85
        Resident Rockstar

        You could use a calculated column to select table fields instead of a measure

         

        If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

  • Column = COALESCE('Table'[PO],"Replacement Text")