Forum Discussion
Create a Daily Status Stacked Chart with Start- and Enddate
- 3 years ago
Hi , MattJacob
According to your description, you want to "Create a Daily Status Stacked Chart with Start- and Enddate".
Here are the steps you can refer to :
(1)This is my test data:(2)We need to create a date dimension date table as the X-axis:
Date = CALENDAR(FIRSTDATE('Table'[Startdate Status]),LASTDATE('Table'[Enddate Status]))We do not need to create any relationship between two tables.
(3)Then we can create a measure:
Measure = var _cur_date= MAX('Date'[Date]) var _t =FILTER('Table' , 'Table'[Startdate Status]<= _cur_date && 'Table'[Enddate Status]> _cur_date) return COUNTROWS(_t)(4)We can put the fields on the visual and we can meet your need:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , MattJacob
According to your description, you want to "Create a Daily Status Stacked Chart with Start- and Enddate".
Here are the steps you can refer to :
(1)This is my test data:
(2)We need to create a date dimension date table as the X-axis:
Date = CALENDAR(FIRSTDATE('Table'[Startdate Status]),LASTDATE('Table'[Enddate Status]))
We do not need to create any relationship between two tables.
(3)Then we can create a measure:
Measure = var _cur_date= MAX('Date'[Date])
var _t =FILTER('Table' , 'Table'[Startdate Status]<= _cur_date && 'Table'[Enddate Status]> _cur_date)
return
COUNTROWS(_t)
(4)We can put the fields on the visual and we can meet your need:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- MattJacob3 years agoFrequent Visitor
Thank you! This worked!