Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am building reports in powerbi using an established data model where the security in place prevents the ability to add columns; thus I must develop a measure to calculate the number of days between two dates within the same column (i.e., previous row).
I have a table with a date field and I would like to calculate the number of days between each event (occurrence) (e.g., number of days between 03/08/2022 and 05/17/2022; number of days between 05/17/2022 and 06/06/2022, etc.). Is there a way to do this by using a measure? Any help/advice you can give would be very much appreciated.
EventDate Field
03/08/2022
05/17/2022
06/06/2022
07/12/2022
09/29/2022
02/07/2023
02/08/2023
02/20/2023
Solved! Go to Solution.
hi @Anonymous
hi @Anonymous
doable. would need the info of other columns to locate date rows. could you enrich your data sample?
Other columns, as a minimum, would include:
Unique Identifier Field (each record/row)
Eventdate (referenced originally)
Title Field
Event Summary Field
Responsible Department Field
hi @Anonymous
Thank you! I will try this!
hi @Anonymous
and the criteria to pick dates for duration calculation?
To include on a visual whether table, combo graph (bar (event) line (days between events)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |