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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PBI_37
Helper I
Helper I

Data modeling - Actual vs Target

Hi everyone,

 

I would like to compare Actual vs Target.

I have a problem with my Data Model.

 

Actual table :

PBI_37_0-1729104360243.png

 

Target table (the target is fixed for the year) :

PBI_37_1-1729104413042.png

 

Data model :

PBI_37_3-1729104499761.png

 

It does not work :

PBI_37_4-1729104536068.png

 

Desired outpout :

PBI_37_5-1729104582293.png

 

Here the link of PBI file :

https://drive.google.com/file/d/1WLSOCFoAXzECpaJK7VSTCKw_WLvsy2_J/view?usp=sharing

 

Thank you for your help

 

 

 

 

 

 

2 ACCEPTED SOLUTIONS
Tutu_in_YYC
Super User
Super User

Try this:

For Actual Value replace with this measure: ActValue = SUM(Actual[Actual Value])
For target, use this: Target = IF( [ActValue] = BLANK(), BLANK(), MAX(Target[Target Value]))

Variance : Variance = [ActValue] - [Target]

View solution in original post

Anonymous
Not applicable

Hi @PBI_37 ,

 

I have made changes in your source file, please check the result below:

vtianyichmsft_0-1729143022985.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
PBI_37
Helper I
Helper I

Thank you v-tianyich-msft and Tutu_in_YYC

 
 

 

Anonymous
Not applicable

Hi @PBI_37 ,

 

I have made changes in your source file, please check the result below:

vtianyichmsft_0-1729143022985.png

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

OktayPamuk80
Responsive Resident
Responsive Resident

Hi,

Did you try to connect your calendar.year with your target.year? In your visual, you should then use calendar.date, too.

 

Regards,
Oktay

 

Did I answer your question? Then please mark my post as the solution.

If I helped you, click on the Thumbs Up to give Kudos.

Tutu_in_YYC
Super User
Super User

Try this:

For Actual Value replace with this measure: ActValue = SUM(Actual[Actual Value])
For target, use this: Target = IF( [ActValue] = BLANK(), BLANK(), MAX(Target[Target Value]))

Variance : Variance = [ActValue] - [Target]

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.

Top Solution Authors
Top Kudoed Authors