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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
pvtrinh89
Frequent Visitor

Create a measure with date

Hi Experts,

I am creating a report that has a date slicer and a measure calcualting as following:

mesuare_name = Total sales/ ( total day in month of date chosen on date slicer) * MTD of the date chosen on the date slicer!.

i would like to see the trend of this measure day by day but i dont know how to do it, so could anyone help me?

Thank in advanced.

 

Best regards,
J.

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

@pvtrinh89

 

According to your description, are you trying to evaluate the value of total sales for month to date, in the current context? If that is the case, using TOTALMTD function may be a possible solution in your scenario. The following formula is for your reference.

mesuare_name = TOTALMTD ( [Total Sales], 'Date'[Date] )

We can see the trend of this measure day by day in the report.

mdt.PNG

 

If this is not the case, could you post some sample data in your scenario? So that we can better understand your requirement.Smiley Happy

 

Regards

Greg_Deckler
Community Champion
Community Champion

Do you have a date table? Can you post some sample, sanitized data so that we can see what you are dealing with?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors