Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Please try this expression
Diff_in_days =
VAR retail_notify =
MAX ( 'Outages'[Date B] )
VAR interuption_start =
MAX ( 'Outages'[Date A] )
RETURN
IF (
YEAR ( retail_notify ) > 1900,
DATEDIFF ( interuption_start, retail_notify, DAY )
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this expression
Diff_in_days =
VAR retail_notify =
MAX ( 'Outages'[Date B] )
VAR interuption_start =
MAX ( 'Outages'[Date A] )
RETURN
IF (
YEAR ( retail_notify ) > 1900,
DATEDIFF ( interuption_start, retail_notify, DAY )
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Dunner2020 , Try like
Diff_in_days =
Var retail_notify = MAX('Outages'[Date B])
Var interuption_start = MAX('Outages'[Date A])
RETURN
CALCULATE( DATEDIFF(retail_notify,interuption_start,DAY), FILTER('Outages and Interruptions',not(isblank(retail_notify)) && retail_notify <> DATE(1900,01,01))
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
94 | |
82 | |
70 | |
64 |
User | Count |
---|---|
116 | |
106 | |
94 | |
79 | |
72 |