Forum Discussion

gjurcin_cch's avatar
gjurcin_cch
Frequent Visitor
3 years ago
Solved

How to sum a string in matrix as zero value

I have one compex DAX where one division needs to happen and get three different kind of results: 1. if the division is equal to 1 the result needs to be "No data in Lake" 2. if the result have zer...
  • gjurcin_cch's avatar
    gjurcin_cch
    3 years ago

    tamerj1 I have tried with it seems to be very close but now the filter does not take any actions and not working on the context. Can you explain me the meaning of hasonevalue so I can somehow design the dax on my own?

     

    SWITCH
    (
        TRUE (),
        ISERROR ( ratio ), "No data in BW",
        ratio = 1, "No data in Lake",
        HASONEVALUE ('metadata_data_quality reconcile_status_v1'[fiscper]), ratio,
        "No data in Lake"
    )