Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |