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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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