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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.