cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
quinnjohnson
Helper I
Helper I

When filtering relative date slicer by "Next" and a time period, my visuals just show blank?

I have some insurance policies that have expiration dates in the future and i would like to have a card visual that shows how many are set to expire "in the next 1 calendar month/1 calendar year/1 calendar week/etc." but it only shows a blank when i selected any dates in the future. The data is completely accurate when showing dates in the past like "last 1 month" i have combed the dataset and have confirmed that. 

 

I have been using this DAX measure to get the data:

 

CY Expirations = CALCULATE( SUM('dim_PolicyControlNo_Basics'[Expiration Count]),
USERELATIONSHIP(dim_PolicyControlNo_Basics[PolicyExpirationDate_ID], Dates[Date_ID]),
FILTER(ALLSELECTED(Dates), Dates[Date] <= MAX(Dates[Date])))
 
My expiration count column is just a 1 or a 0 if the policy has an expiration date (they all do so every row in the column is a 1). Am i doing something wrong? Why would this work perfectly for every date today and prior but not the future?
1 ACCEPTED SOLUTION
TheoC
Community Champion
Community Champion

Hi @quinnjohnson 

 

This might be a silly question on my part but what is the maximum / last date you have incorporated into your Date table?   It could be that the maximum date in the Date table is less than the future periods the measure is attempting to return.  

 

If this isn't it, could you provide an example of the Data Model / Data Set?

 

Thanks heaps,

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
TheoC
Community Champion
Community Champion

Hi @quinnjohnson 

 

This might be a silly question on my part but what is the maximum / last date you have incorporated into your Date table?   It could be that the maximum date in the Date table is less than the future periods the measure is attempting to return.  

 

If this isn't it, could you provide an example of the Data Model / Data Set?

 

Thanks heaps,

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

YOU GENIUS!!!!! That is the issue thank you so much!

@quinnjohnson you're making me blush LOL! No one has ever called me that before haha. In all honesty, it's something I have literally done myself when I first started using Power BI.  All part of the learning journey 🙂  

 

All the best with it mate! 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors