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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
EmmaLiuLiu
Frequent Visitor

How to Calculate Days in Different Months

I promise I did my research on the internet before I post a new thread here. lol

 

I have a table like this:

FinalXtime Start DateEnd DateXtime End DateExport DateDays Count$/day
CM1/15/2024 1/31/20243/8/20241720
 2/1/2024 2/20/20243/3/20242055
01/20/2024 2/5/20243/8/2027015
End 2/282/22/20242/28/20243/5/2024 726
End 3/52/22/20243/5/20243/8/20243/3/20241314

 

When the column Final is "CM" or blank, use column Xtime Start Date and Xtime End Date to calculate Days Count. When column Final is 0, Days Count is 0. When column Final has an "End" date, use column Xtime Start Date and End Date to calculate Days Count. I need to create a meausure to calculate the Days Count for different months. I don't even know where to start since there are different date columns for different values from column Final. When I create a bar chart based on time (year.month), I will be able to see Days Count by month. Help PLEASE!

 

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_1-1734647762557.png

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.