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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

calculate ytd

i have two measures of year start date and year end date and i also have total sales but need to calculate ytd with those two measures i cant find correct dax expression for that please help.

thanks

3 REPLIES 3
Anonymous
Not applicable

not that simple need to calculate ytd with the two measure as i mentioned above.

 

Can you provide a demo file?

 

Certainly can be done but needs a lot of the logic writing from scratch.



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
bcdobbs
Community Champion
Community Champion

At it's simplest you can do something like this:

TOTALYTD (         
    [Sales Amount],
    'Date'[Date]      
)

You do however need a date table. Have a look at: 

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

From your description however I'm not certain on your requirements. If you provided a demo file I'm sure we can help more.

 

Ben
 



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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