Forum Discussion

Mjolnir's avatar
Mjolnir
Icon for Helper I rankHelper I
2 years ago
Solved

Calculation items removes Web URL from values - how to fix?

Hi,   My measure "Actuals" returns values from the general ledger. My measure "Web URL" is used to conditionally format the "Actuals" measure to retrieve the invoice link. This works perfect, but ...
  • Mjolnir's avatar
    Mjolnir
    2 years ago

    Again, really appreciate your effort - though the problem still remained.

     

    So the problem seemed to be related to the calculation item "Actuals", that returns blank when the selected measure name does not contain "actuals". So the Web URL measure was simply set to blank as its name does not contain "actuals" in it.

     

    So I tried to to change the calculation item telling it to return the selected measure when the selected measure name either contain "Actuals" or "Web URL" - and it works now!

    Calculation item changed to...

    Actuals=
    IF (
        CONTAINSSTRING(SELECTEDMEASURENAME(), "Actuals") ||
        CONTAINSSTRING(SELECTEDMEASURENAME(), "Web URL"),
        SELECTEDMEASURE(),
        BLANK()
    )