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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
CoboleiroBr
Helper I
Helper I

Date Relationship Problem

Hi guys!

I'm new to PowerBI and I'd like to know if there is a way to solve that...

I have a Calendar table and a Tickets table. I need two relationships to calculate Opened/Closed Tickets correctly.

So, I have an active relationship for Open Date and other relationship for Finish Date, but if the Ticket was not closed, Finish Date is null.

The measures are being calculated perfectly, but the problem is when using segmentation I got a Blank option, like below. 

Is there a way to not show this blank? How?

Thanks in advance!

 

PB II.png

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hello @JordanAWARE !

 

Thanks for your answer.

 

After trying some solutions I found one that worked fine, but I had to create more tables and relationships, I'm not sure if it is the best solution, but is better than show Blank in the segmentation, because it seems there is something wrong with the database...

 

Anyway, these steps solved the problem:

 

1 - I created a new table containing only the Closed Tickets, where the Finish Date is filled;

2 - A relationship between Calendar and Closed Tickets, by Finish Date;

3 - Since I was using only one table in my report and now I'm using two, I had to create some intermediate tables/relationships to filter correcly the data in both tables.

 

Thanks again.

View solution in original post

2 REPLIES 2
JordanAWARE
Frequent Visitor

If you wanted to just hide Blank() from showing in the slicer just drag the field the slicer uses into a report/page filter, select all years then just uncheck blank and it will hide it.

But I dont think thats solving the issue of the blank years being there...

 

What table is that slicer reading from?

 

The next option is to try create a calculated column inside the Tickets table -->  Year = related('Calender'[year])

and use this column to slice the year

Hello @JordanAWARE !

 

Thanks for your answer.

 

After trying some solutions I found one that worked fine, but I had to create more tables and relationships, I'm not sure if it is the best solution, but is better than show Blank in the segmentation, because it seems there is something wrong with the database...

 

Anyway, these steps solved the problem:

 

1 - I created a new table containing only the Closed Tickets, where the Finish Date is filled;

2 - A relationship between Calendar and Closed Tickets, by Finish Date;

3 - Since I was using only one table in my report and now I'm using two, I had to create some intermediate tables/relationships to filter correcly the data in both tables.

 

Thanks again.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.