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
Anonymous
Not applicable

How many days by month for each activities

Hi Everyone,

 

I have a table of scheduled activites, each with a start date and a end date.

Now, I need to know, for each activites and every month, how many days I spent in the month.

 

I don't have a clue where to start and which formula I need.

Any ideas please ? 🙂

 
 

2020-03-12 12_04_58-Window.png

 

Regards 🙂

 

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@Anonymous 

 

The phone you provide is not showing much useful information, the can be something like: 

Measure = CALCULATE(COUNTROWS([spendtime?]),ALLEXCEPT('Table','Table'[Activity],'Table'[Date].[Month]),FILTER('Table',[Spendtime?] ="Yes"))

 

But you would need to provide a sample data or file, so we can have a look at the case for a solution. 

Best regards
Paul Zheng

amitchandak
Super User
Super User

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.