Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Guys,
Does anyone know how to calculate time variance exactly as we calculate it in Excel? excel provide an option of the 1904 data system so power bi also provides the same or not?
For example;
I have 2 times available in 2 different columns with names as;
actual departure time 21:00
actual arrival time 00:36
time variance = actual arrival time - actual departure time
time variance = 00:36 - 21:00
power bi shows the output as 20:24 instead of 03:36 which is shown in Excel by formatting the 1904 data system.
Solved! Go to Solution.
Hi @Mhscmp100 ,
Please try below steps:
1. below is my test table
Table:
2. create a new column with below dax formula
Time Variance =
VAR val =
IF ( [arrival time] < [departure time], [arrival time] + 1, [arrival time] ) - [departure time]
RETURN
FORMAT ( val, "hh:nn" )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Mhscmp100 ,
Please try below steps:
1. below is my test table
Table:
2. create a new column with below dax formula
Time Variance =
VAR val =
IF ( [arrival time] < [departure time], [arrival time] + 1, [arrival time] ) - [departure time]
RETURN
FORMAT ( val, "hh:nn" )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
4 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |