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
gene7135
Regular Visitor

Unable to create measure

I am sure this is a newbie question.

 

I have trying to create a measure with the following DAX formula.

 

Submit Count = Divide(Count('Raw Data'[Repair Order]), 'Working Days'[Num of Days] ))

 

I do have a relationship between the two table, but the intellisence refuses to see the "Working Days" table.

 

Any ideas why?

1 ACCEPTED SOLUTION

@gene7135

 

You need to add a aggregation to Num of Days

 

Something Like: (Sum, Count, Min,Max, Values.etc)

 

Submit Count = Divide(Count('Raw Data'[Repair Order]), Sum('Working Days'[Num of Days] ))

 

 




Lima - Peru

View solution in original post

7 REPLIES 7
alanhodgson
Solution Supplier
Solution Supplier

Hey @gene7135,

 

Please share a screenshot of your data structure. There is probably something off in the relationship.

 

Best,

 

Alan

Does this help?

 

2017-01-12_12-43-26.png

 

@gene7135

 

Can't see [Num of Days] in the table Working Days




Lima - Peru

Sorry "Number of Days"   Should read P1100.

@gene7135

 

You need to add a aggregation to Num of Days

 

Something Like: (Sum, Count, Min,Max, Values.etc)

 

Submit Count = Divide(Count('Raw Data'[Repair Order]), Sum('Working Days'[Num of Days] ))

 

 




Lima - Peru

Thanks.    That's just what I realized.

 

 

The "Monday Date" in Working Days" is Date

 

The "Monday of Submit Date" was Date/Time,  I changed it to Date.

I think I found the issue.  At least it's does not give an error.

 

Here is the formula.

 

Submit Count = Divide(Count('Raw Data'[Repair Order]), SUM('Working Days'[P1100]))

Looks like a data type issue. What are the data types for the Date columns?

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.

Top Solution Authors