The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
good afternoon
I need in a column or measure, calculate the difference of days between the selected dates in the slicer ... some function?
I speak Spanish.
the image in the link
https://www.dropbox.com/s/pe0hen9ghx65r8d/Captura12.PNG?dl=0
Solved! Go to Solution.
Hi @luis951225,
Please use the following formula, I have tested it in my sample data table, it works fine.
Measure = DATEDIFF ( CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable ) ), CALCULATE ( MAX ( DateTable[Date] ), ALLSELECTED ( DateTable ) ), DAY )
Best Regards,
Angelia
Hi, I have a similar issue, but I am not trying to calculate a date difference.
My situtation is that I have a Sprint Name column. When the user selects the Sprint, I set a measure called 'SelectedSprintStart' to the selected Sprint's start date.
Hi @luis951225
Try this MEASURE
Measure = DATEDIFF ( MIN ( TableName[Date] ), MAX ( TableName[Date] ), DAY )
Hi,
Hello, The dates you want to obtain are in a slicer !!
Hi @luis951225,
Please use the following formula, I have tested it in my sample data table, it works fine.
Measure = DATEDIFF ( CALCULATE ( MIN ( DateTable[Date] ), ALLSELECTED ( DateTable ) ), CALCULATE ( MAX ( DateTable[Date] ), ALLSELECTED ( DateTable ) ), DAY )
Best Regards,
Angelia
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
80 | |
80 | |
48 | |
40 |
User | Count |
---|---|
150 | |
110 | |
64 | |
64 | |
57 |