Forum Discussion

Edgar_massa's avatar
Edgar_massa
Icon for Helper II rankHelper II
3 years ago
Solved

Use measurement result to create another

good night dear I have a table where I make a difference of simple days, using the following measure:   But I'm trying to use the day difference result to create a deadline status meas...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Edgar_massa ,

    If I understand correctly, it seems that the measure [Status] can't return the correct result base on the measure [Deadline Days]. Am I right? Please create a measure as below base on the measure [Prazo em Dias] as below and update the formula of measure [Status] as below. Later please check if it can return the correct result...

    Measure =
    SUMX (
        GROUPBY (
            fac_TicketsHistorico,
            fac_TicketsHistorico[dt_envio_financeiro],
            fac_TicketsHistorico[dt_prev_pagamento],
            fac_TicketsHistorico[Codigo]
        ),
        [Prazo em Dias]
    )
    Status = IF([Measure]<=5,"NOK","OK")

    If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

    How to provide sample data in the Power BI Forum

     

    And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards