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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sharma0815
Helper II
Helper II

What% of Months hit the Target

Hi All,

 

I am trying to create a measure to calculate what % of months that TOP2 surveys hit my target.

Here is my Dataset.

 

DeptSurveyIDSurveyMM-YY
Marketing23412TOP2Nov-20
Marketing23413TOP2Nov-20
Marketing23414TOP2Nov-20
Marketing23415TOP2Nov-20
Marketing23416TOP2Nov-20
Marketing23417TOP220-Dec
Marketing23418TOP220-Dec
Marketing23419TOP220-Dec
Marketing23420Bottom320-Dec
Marketing23421Bottom320-Dec
Marketing23422Bottom320-Dec
Marketing23423Bottom320-Dec
Marketing23424Bottom320-Dec
Marketing23425Bottom320-Dec
Marketing23426Bottom320-Dec
Marketing23427TOP2Jan-21
Marketing23428TOP2Jan-21
Marketing23429TOP2Jan-21
Marketing23430TOP2Jan-21
Marketing23431TOP2Jan-21
Marketing23432TOP2Jan-21
Marketing23433Bottom3Jan-21
Marketing23434Bottom3Jan-21


I got 100% TOP2 surveys in Nov-2020,30% in Dec-2020 and 75% in Jan-2021

 

I have one more table which contains the actual target by each department.

DeptTarget
Marketing70
Sales60
IT55
Tech80

 

So here,my marketing dept hit the target in Nov-2020 and Jan-2021,I need to calculate What % of months that actually hit the target.
here i should get 2/3 = 65%


1 REPLY 1
lbendlin
Super User
Super User

Sounds pretty straightforward. What have you tried so far and where are you stuck?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.