Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a project table which have Start date end date project name and i have date table that is generating calender date, i need a line chart that will show ongoing project month wise, You cant create calculated field or any extra tables
Project Name | Start Date | End date |
elivie | 1/11/2021 | 17/02/2022 |
abc | 7/11/2021 | 8/3/2022 |
mydata | 12/12/2021 | 7/8/2022 |
helloworld | 11/12/2022 | 6/5/2022 |
Output
ongoingproject | |
Nov-21 | 2 |
Dec-22 | 2 |
Jan-22 | 4 |
Feb-22 | 4 |
Mar-22 | 3 |
Apr-22 | 2 |
May-22 | 2 |
Jun-22 | 1 |
Solved! Go to Solution.
Hi @Anonymous,
Calculated column is a necessity for you need a MMM-YY column to create your visual but it won’t generate in your model automatically.
OngoingMonth = FORMAT('calendar'[Date],"mmm-yy")
After creating this Calculated column, a Measure can achieve your needs.
OngoingProject =
VAR firstDay =
FIRSTDATE ( 'calendar'[Date] )
VAR lastDay =
LASTDATE ( 'calendar'[Date] )
RETURN
CALCULATE (
COUNT ( 'Table'[Project Name] ),
FILTER (
ALL ( 'Table' ),
'Table'[Start Date] <= lastDay
&& 'Table'[End date] >= firstDay
)
)
Sample data and the result look like this.
Also, attached the pbix file.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @Anonymous,
Calculated column is a necessity for you need a MMM-YY column to create your visual but it won’t generate in your model automatically.
OngoingMonth = FORMAT('calendar'[Date],"mmm-yy")
After creating this Calculated column, a Measure can achieve your needs.
OngoingProject =
VAR firstDay =
FIRSTDATE ( 'calendar'[Date] )
VAR lastDay =
LASTDATE ( 'calendar'[Date] )
RETURN
CALCULATE (
COUNT ( 'Table'[Project Name] ),
FILTER (
ALL ( 'Table' ),
'Table'[Start Date] <= lastDay
&& 'Table'[End date] >= firstDay
)
)
Sample data and the result look like this.
Also, attached the pbix file.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
@Anonymous
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 |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |