- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Calculating actual time spent on appointment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @ludvigreck
You can use variable to capture the data for the current row.
Return the smallest date in the table after filter to appointments after.
Then do an IF between the two:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Fantastic, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @ludvigreck
You can use variable to capture the data for the current row.
Return the smallest date in the table after filter to appointments after.
Then do an IF between the two:
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello Sam,
Thanks for the input,
We have this table in a data warehouse in Fabric. Do you know how to use this dax code to handle the transformation at the data warehouse-level, before data enters Power BI?
All the best,
Ludvig

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-08-2024 12:36 PM | |||
09-18-2024 01:05 AM | |||
02-03-2025 06:32 AM | |||
08-02-2023 01:29 PM | |||
10-09-2024 08:32 AM |
User | Count |
---|---|
108 | |
89 | |
80 | |
54 | |
46 |