Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mangnuel
Helper I
Helper I

Dates inbetween?

Hello PowerBi World

 

My goal is highlighting within a figure the availability of a system.
What do I have, the beginning and ending date of an outage. Two inputs.
That’s the information PowerBI currently has.

What do I want, all the dates between the beginning and ending outage.
So one can generate a figure with daily resolution showing the availability of a system.
Easy example.

A figure including every single day is needed.
Beginning date of outage on Mar 9th, Ending Date March 19th . Those two dates are known by the system. How can I create such a table now.

 

final result.JPG

at the beginning of the month the number of outages is 0, with the beginning date the figure turns to 1 (outage) until the problem was resolved. Then the line goes back to 0.

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Mangnuel ,

 

Based on your description, I created these data.

1. create the calculation table.

New Table =
VAR _start_date = EOMONTH(MIN('Table'[start]),-1) + 1
VAR _end_date = EOMONTH(MAX('Table'[end]),0)
RETURN
FILTER(
CALENDAR(_start_date,_end_date), [Date] >= _start_date, [Date] >= _start_date
[Date] >= _start_date && [Date] <= _end_date)

 

2. Create calculated columns in the calculation table.

Column =
IF(
COUNTROWS(
FILTER(
'Table'.
'New Table'[Date] >= 'Table'[start] && 'New Table'[Date] <= 'Table'[end]
)
) > 0, 1, 0
)

vkaiyuemsft_0-1714098861471.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Mangnuel ,

 

Based on your description, I created these data.

1. create the calculation table.

New Table =
VAR _start_date = EOMONTH(MIN('Table'[start]),-1) + 1
VAR _end_date = EOMONTH(MAX('Table'[end]),0)
RETURN
FILTER(
CALENDAR(_start_date,_end_date), [Date] >= _start_date, [Date] >= _start_date
[Date] >= _start_date && [Date] <= _end_date)

 

2. Create calculated columns in the calculation table.

Column =
IF(
COUNTROWS(
FILTER(
'Table'.
'New Table'[Date] >= 'Table'[start] && 'New Table'[Date] <= 'Table'[end]
)
) > 0, 1, 0
)

vkaiyuemsft_0-1714098861471.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.