Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a table:
Object Status StartDate EndDate
Ob1 A 2018/3/3 2018/4/18
Ob1 B 2018/4/19 2018/8/30
Ob1 S 2018/9/1 2018/10/15
Ob2 S 2018/1/13 2018/3/5
Ob2 A 2018/3/6 2018/10/18
In the report, a date or a week or a month, or a range of dates may be selected and the chart need to calculate and display, for the given range how many objects are avalible for each stage.
How do i do this?
Solved! Go to Solution.
You can do this in multiple ways. Best way to do with minimum DAX code and minimum formula engine involvment is as below:
1. Create a simple Date table (you can enhance it with more columns like year, month, etc if you need).
Date = CALENDAR ( MIN ( 'Table'[Start Date] ), MAX ( 'Table'[End Date] ) )
2. Create a new Fact table:
Fact =
SELECTCOLUMNS (
GENERATE (
'Table',
DATESBETWEEN ( 'Date'[Date], 'Table'[Start Date], 'Table'[End Date] )
),
"Object", 'Table'[Object],
"Status", 'Table'[Status],
"Date", 'Date'[Date]
)3. Create a relationship between Date[Date] & Fact[Date]
4. Create the measure:
Unique Object # = DISTINCTCOUNT('Fact'[Object])5. Now you can create your chart/table, adding Fact[Status] & [Unique Object #] and keeping Date[Date] as the slicer.
Hope this helps.
see attached file: https://1drv.ms/u/s!AiiWkkwHZChHjy2AyKpmHxnHYq2U
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
I have a table:
Object Status StartDate EndDate
Ob1 A 2018/3/3 2018/4/18
Ob1 B 2018/4/19 2018/8/30
Ob1 S 2018/9/1 2018/10/15
Ob2 S 2018/1/13 2018/3/5
Ob2 A 2018/3/6 2018/10/18
In the report, a date or a week or a month, or a range of dates may be selected and the chart need to calculate and display, for the given range how many objects are avalible for each stage.
How do i do this?
see attached file: https://1drv.ms/u/s!AiiWkkwHZChHjy2AyKpmHxnHYq2U
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!
Thank you your solutions worked.
You can do this in multiple ways. Best way to do with minimum DAX code and minimum formula engine involvment is as below:
1. Create a simple Date table (you can enhance it with more columns like year, month, etc if you need).
Date = CALENDAR ( MIN ( 'Table'[Start Date] ), MAX ( 'Table'[End Date] ) )
2. Create a new Fact table:
Fact =
SELECTCOLUMNS (
GENERATE (
'Table',
DATESBETWEEN ( 'Date'[Date], 'Table'[Start Date], 'Table'[End Date] )
),
"Object", 'Table'[Object],
"Status", 'Table'[Status],
"Date", 'Date'[Date]
)3. Create a relationship between Date[Date] & Fact[Date]
4. Create the measure:
Unique Object # = DISTINCTCOUNT('Fact'[Object])5. Now you can create your chart/table, adding Fact[Status] & [Unique Object #] and keeping Date[Date] as the slicer.
Hope this helps.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 46 | |
| 42 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 196 | |
| 127 | |
| 102 | |
| 67 | |
| 49 |