Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
As many others here, I would like to get the count difference of two dates.
I have one column called "closed dates" and another column called "Opened Dates"
When I try to do the "duration.day" formular in the query editor, the outcome only shows me errors.
When I try to do a dax measure with DateDiff it only allows me to select measures from that data table, but not simple columns.
My two date columns are categorized as "Date" so that cannot be the problem.
Is there a way to use the DateDiff function with normal date columns?
Solved! Go to Solution.
Hi @patricPBI ,
You have got extra COMMA for MAX function. Remove them please as highlighted below:
Thanks,
Pragati
Hi @patricPBI ,
Try a DAX measure something like this:
Diff = DATEDIFF(MAX(Date1), MAX(Date2), Month)
For details on DATEDIFF, refer following link:
https://docs.microsoft.com/en-us/dax/datediff-function-dax
Thanks,
Pragati
Hi @Pragati11 ,
UNfortunetely, I get the following error message:
Also, for MAX, it is asking me fo a Scalar 2. What do I have to input here?
Best regards,
Patric
HI @patricPBI ,
Unfortunately, just the screesnhot of your error doesn't help.
Share screesnshot of the measure you are writing.
Thanks,
Pragati
Hi @patricPBI ,
You have got extra COMMA for MAX function. Remove them please as highlighted below:
Thanks,
Pragati
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |