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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
Employee
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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.