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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
annieway
New Member

*DISREGARD* DAX Help - Subtracting Values from a Target w/conditions

No longer needed, can't seem to delete this post.

1 REPLY 1
Data-estDog
Resolver II
Resolver II

More information always helps. I will attempt an answer but follow this going forward: https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

How the DAX is written depends entirely upon your data model. If your data tables with your target and your actuals are linked to a common data dimension you should be able to simply add the following measure to your forcast table: 

 

DistanceToGoal = [Target] - [MTD Avg]

 

If target and MTD Avg are not explicit measures, create measures on their corrisponding data tables or make a measures table.

 

***lots of guessing coming up here

Target = Sum(Target)

MTD Avg = Avg(MTD)

 

Then create the DistanceToGoal measure. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.