Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
qmestu
Helper III
Helper III

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.

1 ACCEPTED SOLUTION
FBergamaschi
Solution Sage
Solution Sage

Hi again,

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

 

Here is my result, with your sample data

 

FBergamaschi_0-1753976596873.png

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

View solution in original post

6 REPLIES 6
V-yubandi-msft
Community Support
Community Support

Hi @qmestu ,

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


Thanks.

V-yubandi-msft
Community Support
Community 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
Community Support
Community 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
Community Support
Community 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.

FBergamaschi
Solution Sage
Solution Sage

Hi again,

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

 

Here is my result, with your sample data

 

FBergamaschi_0-1753976596873.png

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

FBergamaschi
Solution Sage
Solution Sage

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.