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! Learn more
Greetingd Actually, i have a Target value.. this target value should change regarding of month, say in october Target value was 45%, in December it is changed to 65%. When i select November, there should be shown acting Limit, which is 45%(October).
How to write a measure?
Solved! Go to Solution.
Hi @Elmarius123 ,
According to your description, I create a sample.
In my understanding, for the months have no Target, your expected result is to display the target of the most recent month before, here's my solution.
Create a measure.
Actual target =
IF (
MAX ( 'Table'[Target] ) <> BLANK (),
MAX ( 'Table'[Target] ),
MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Index]
= MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Index] < MAX ( 'Table'[Index] )
&& 'Table'[Target] <> BLANK ()
),
'Table'[Index]
)
),
'Table'[Target]
)
)
Get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Elmarius123 ,
According to your description, I create a sample.
In my understanding, for the months have no Target, your expected result is to display the target of the most recent month before, here's my solution.
Create a measure.
Actual target =
IF (
MAX ( 'Table'[Target] ) <> BLANK (),
MAX ( 'Table'[Target] ),
MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Index]
= MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Index] < MAX ( 'Table'[Index] )
&& 'Table'[Target] <> BLANK ()
),
'Table'[Index]
)
),
'Table'[Target]
)
)
Get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi:
Can you explain further and show some data? Thanks..
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 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |