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

Need help with a DAX query

Hello,

 

I need to calculate the [Net Assets] both the first day and last day of each month, which is my [As Of Date] column within the dataset, based on Account Number.

 

Below is the formula in high level form

 

(NetAssets(FirstDayOfMonth) + NetAssets(LastDayOfMonth) / 2) x ManagementFee x (NumberOfDaysInMonth / 365)

 

At first glance, I believe I'll need separate mesures that would give me the FirstDayOfMonth and LastDayOfMonth from the [As of Date] column as well as the NumberOfDaysInMonth.

 

Any help would be much appreciated.

 

Thank you

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

First thing would be to use a dedicated calendar table and utilize the time-intelligence functions which woud make your requirement exponentially easier

https://docs.microsoft.com/en-us/dax/time-intelligence-functions-dax

 

also, I'd use the Divide Function instead of "/"

View solution in original post

Anonymous
Not applicable

Great, thank you very much!  I just created the calendar table and utilize the time intelligent functions

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

First thing would be to use a dedicated calendar table and utilize the time-intelligence functions which woud make your requirement exponentially easier

https://docs.microsoft.com/en-us/dax/time-intelligence-functions-dax

 

also, I'd use the Divide Function instead of "/"

Anonymous
Not applicable

Great, thank you very much!  I just created the calendar table and utilize the time intelligent functions

Anonymous
Not applicable

awesome! Glad was able to help 

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.