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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Date relationships

I will preface this that I am still pretty green with PowerBI, so be gentle haha. I'd like to make some visuals with this data to help our IT department. Here is what I'm striving for:

sjpusat_0-1678308818407.png

Unfortunately the data is all clumped into one table (that's how it was exported from the API) and I've been trying to figure out how to get a single date column that's correlated with the different Created dates and closed dates that are in that one table. I tried to make a rolling calendar and create relationships from those fields to the calendar so there is one standardized date field to use on the X-axis, but nothing populates on the visual. Here's the model:

sjpusat_1-1678308992355.png

And this is what I'm doing on the visual:

sjpusat_2-1678309415241.png

I appreciate any insight into solving this and helping me become more proficient with PowerBI. Thanks!

4 REPLIES 4
olgad
Super User
Super User

Which data type are closed and created date? What is this status? Take that off and place count id and closed count id under each other under y. Which formula you are using for rolling calendar, does it cover the correct date range? Check just in case. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
Anonymous
Not applicable

Closed and created date are formatted as short dates. Status is open, closed, and pending. Calendar was made with list.dates function from 1/1/2022, which covers the date range. I placed the count ID and closed cases measure in the Y, but still nothing populates on the X axis (date).

olgad
Super User
Super User

Hi, you can have only one active relationship between two tables.

So if you want cases opened cases closed you have to create date-open date relationship and make it active, second date-closing date keep it inactive ( but create it)

then for the closing date you will use Userelationship function.

closed cases= Calculate(count(cases), userelationship(date, closing date)) 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
Anonymous
Not applicable

So I created that as a measure, which axis is that going in? And RollingCalendar[date] still doesn't populate anything on the visual in the x-axis

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.