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

View all the Fabric Data Days sessions on demand. View schedule

Reply
komald
Helper I
Helper I

How to get latest target as per month

I have data which consist columns like salesperson name, target, revision no. as so on
revision no. indicates the updated target for that particular month.
Now what im looking for , I want to create a matrix which show month wise initial and revised target i.e last target for that month w.r.t sale person. 
revised target nothing but latest target of that sales person in that particular month
and initial target is first target of that sales person in that particular month
for e.g 
salesperson  date          Target     revision no
a                   2 march    3k               1

a                   2 march    5k               2

a                   4 Apr         4k              1

a                   4 apr          7k              2
a                   5 apr         6k              3
output: in the form of metrix
month                           march                                                 apr
salesperson        initial target |  Revised target         initial target |   Revised target

   a                           3k                  5k                                 4k                    6k


1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @komald 

you may try

Revised target =
CALCULATE (
    MAX ( 'Table'[Target] ),
    'Table'[revision no] = MAX ( 'Table'[revision no] )
)
initial target =
CALCULATE ( MAX ( 'Table'[Target] ), 'Table'[revision no] = 1 )

 

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @komald 

you may try

Revised target =
CALCULATE (
    MAX ( 'Table'[Target] ),
    'Table'[revision no] = MAX ( 'Table'[revision no] )
)
initial target =
CALCULATE ( MAX ( 'Table'[Target] ), 'Table'[revision no] = 1 )

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.