Forum Discussion

qmestu's avatar
qmestu
Icon for Helper IV rankHelper IV
1 year ago
Solved

Getting the latest value per date and using intervals

Hi,

 

I have the following sample data:

quarterparameterdatevalue
1TIND0331/01/20256
1TIND0328/02/20254
1TIND0331/03/20253
2TIND0330/04/20252
2TIND0331/05/20256
1TIND0131/01/20252
1TIND0128/02/20253
1TIND0131/03/20254
2TIND0130/04/20254
2TIND0131/05/20257

 

I also have the following data with goals for each parameter per quarter:

parameterquartergoal1goal2goal3goal4
IND011T0125
IND012T0125

 

How can i create a measure that returns the value of the latest parameter for each quarter (the most recent date) and determines which goal its surpassing? I have also connected a relationship between the two tabels, by combining quarter and parameter in a column.

 

Thanks.

6 Replies

  • Hello qmestu 

    I am working on this bu tthe problem is that for each quarter there are mutiple paramters that satisfy your condition

    (ex in 1T, IND03 and IND01 are both on march 31 2025) and they can have different values, which value should we consider in this case?

     

    If this helped, please consider giving kudos and mark as a solution

    @me in replies or I'll lose your thread

    Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

    Consider voting this Power BI idea

    Francesco Bergamaschi

    MBA, M.Eng, M.Econ, Professor of BI

  • Hi again,

    I completed the thing, reading better it was clear, apologies for not understanding

     

    Here is my result, with your sample data

     

    Here is the file pbix:

     

    https://drive.google.com/drive/folders/1beZLGE0rxZOeLOUVVF2DZ5l43ZBpxfCH?usp=sharing

     

    If this helped, please consider giving kudos and mark as a solution

    me in replies or I'll lose your thread

    Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

    Consider voting this Power BI idea

    Francesco Bergamaschi

    MBA, M.Eng, M.Econ, Professor of BI

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Icon for Community Support rankCommunity Support

    Hi qmestu ,

    Thank you for contacting the Fabric Community. I have gone through FBergamaschi , response and found that it meets your requirements and expectations. Please review her reply in detail, as well as the attached PBIX file for your reference.

     

    Thanks to FBergamaschi , for providing a clear and helpful solution.

     

    Best regards,
    Community Support Team _Yugandhar.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Icon for Community Support rankCommunity Support

    Hi qmestu ,

    Have you been able to review the response from FBergamaschi . Does it meet your needs, or are there any changes you would like us to make? Let us know.

     

    Thank You.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Icon for Community Support rankCommunity Support

    Hi qmestu ,

    If your issue is resolved, that’s good to hear. But if you're still facing any difficulties or running into new challenges, feel free to let me know.

     

    Thank You.

  • V-yubandi-msft's avatar
    V-yubandi-msft
    Icon for Community Support rankCommunity Support

    Hi qmestu ,

    Could you let me know if your issue is resolved, or if you need any additional details.


    Thanks.