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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors