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! Learn more

Reply
Anonymous
Not applicable

Tricky Measure

I have a table with users and a YTD revenue goal number:

1.PNG

 

This table has a relationship established with a date table. There are gaps in the data in the above table so every user doesn't have data for every month of the year which makes it tricky when writing measures that involve dates. This measure is expected to go on a line graph.

 

I've been tasked with putting together a formula that will calculate the monthly % of their YTD goal they're expected to hit each month based upon:

Capture.PNG

So if the user has a yearly goal of $150,000 and is expected to complete 6.5% of that in January, that'd be $9,750. Then $8,250 for February, etc. until they hit 100% by the end of the year. How can I put this into a measure? I'm thinking it'd be a switch statement but I'm awful at writing measures that involve dates that have gaps 😀

1 REPLY 1
TomMartens
Super User
Super User

Hey @Anonymous 

 

I have to admit that I do not understand your data model.

 

For this reason, please create a pbix with sample data, but still reflects your data model. Upload the pbix (andthe xlsx if you xlsx to create the sample data) to onedrive or dropbox and share the link.

 

How is the users/goal table related to the date table, which table holds the monthly percentages. Do these percentages change over time, meaning from year to year?

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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