Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Need to help to find the first target from cumulative total.
and then highlight the months to achieve target
Lets set Target as 15
Measures:
"Pts Run" is a cumulative total
"Pts Tgt" = MIN (Pts Run,15)
Expected out put
For id 1, it's acheived on April, Flag value is "Y" till April, remaining months to be marked as "N"
For id 2, it's acheived on March,Flag value is "Y" till March, remaining months to be marked as "N"
Unable to upload the sample pbix file. Pls find the details
Sample Data:
Table Name: Sample
id | dt | pts |
1 | 1/1/2024 | 3 |
1 | 2/1/2024 | 4 |
1 | 3/1/2024 | 2 |
1 | 4/1/2024 | 7 |
1 | 5/1/2024 | 6 |
1 | 6/1/2024 | 2 |
2 | 1/1/2024 | 6 |
2 | 2/1/2024 | 4 |
2 | 3/1/2024 | 7 |
2 | 4/1/2024 | 1 |
2 | 5/1/2024 | 3 |
2 | 6/1/2024 | 5 |
Calendar table
Solved! Go to Solution.
Hi,
I am not sure if I understood the question correctly, but please check the below picture and the attached pbix file.
INDEX function (DAX) - DAX | Microsoft Learn
Hi,
I am not sure if I understood the question correctly, but please check the below picture and the attached pbix file.
INDEX function (DAX) - DAX | Microsoft Learn
Thank you so much.
First month target acheived approach worked great in my model.
Appreciate your guidance.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.