Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
In my raw data, I have a few timestamps from a process as below. Is there any visualization in Power BI that allows a user to pick any two date points and the visualization will show the number of dates spent between the two points?
Date 1 | Date 2 | Date 3 | Date 4 | Date 5 |
Thanks,
Rui
Solved! Go to Solution.
Hi @ruidi1126
For your question, here is the method I provided:
Here's some dummy data
"Table"
You can select any two dates by creating a Vertical List slice.
You can calculate the number of days between selected dates by creating a measure.
Date Interval =
var _mindate = MIN('Table'[Date])
var _maxdate = MAX('Table'[Date])
RETURN IF(ISFILTERED('Table'[Date]),DATEDIFF(_mindate, _maxdate, DAY), BLANK())
Here is the result.
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ruidi1126
For your question, here is the method I provided:
Here's some dummy data
"Table"
You can select any two dates by creating a Vertical List slice.
You can calculate the number of days between selected dates by creating a measure.
Date Interval =
var _mindate = MIN('Table'[Date])
var _maxdate = MAX('Table'[Date])
RETURN IF(ISFILTERED('Table'[Date]),DATEDIFF(_mindate, _maxdate, DAY), BLANK())
Here is the result.
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
70 | |
44 | |
38 | |
29 |
User | Count |
---|---|
156 | |
92 | |
61 | |
44 | |
42 |