March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello
I have a problem that I cant solve.
I have a column in date form titled required date. I would like to know how I could get a card to show me how many items are due in the next two weeks, and how many items are required completely please?
Could anyone help?
Thank you
Solved! Go to Solution.
You are not closing DISTINCTCOUNT.
Please use ) after giving the column.
Regards,
Manikumar
If you think this is helpful Please Accept as Solution and leave a like
Proud to be a Super User!
Use the below to check the last 14 days distinct values.
Measure =
CALCULATE(DISTINCTCOUNT('Table'[Value]),DATESINPERIOD(LASDATE('Table'[Date]),-14,DAY))
Proud to be a Super User!
Thank you for your reply.
Using your solution I get the error message :
Too few arguments were passed in DATESINPERIOD fucntion. The minium argument count for the function is 4
@Pricey79 , hey Sorry.
I was missing to refre the Dates columns.
Measure =
CALCULATE(DISTINCTCOUNT('Table'[Value]),DATESINPERIOD('Table'[Date],LASDATE('Table'[Date]),-14,DAY))
Check with the above
Reards,
Manikumar
Proud to be a Super User!
You are not closing DISTINCTCOUNT.
Please use ) after giving the column.
Regards,
Manikumar
If you think this is helpful Please Accept as Solution and leave a like
Proud to be a Super User!
🙂 Awesome, you got the answer.
Your Kudo will be appreciated.
Regards,
Manikumar
Proud to be a Super User!
@Pricey79 , Something like this
Measure =
var _min = maxx(allselcted('Table'),'Table'[Date])
return
calculate(count('Table'[Value]),filter('Table','Table'[Date] >=_min && 'Table'[Date] <= _min + 14))
you can use distinctcount inplace of count
Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.
Thank you for replying
I'm afraid thats a bit complicated for me, I am a real novice at this.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |