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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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