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
qwertyh
Frequent Visitor

Creating a Dynamic Slider that Selects Inforce Policies Only that does X with the data.

Hello,

I just started my journey with PowerBI and Power Query and would greatly appreciate some assistance. I am trying to create a slider such that depending on the Year and Quarter that I select for Example 2017 Q2, it will filter my data by checking if that date lies between the effective date and expiration date and pull up the appropriate revenue in Card.

Effective_dateExpiration Daterevenue
6/13/20156/12/2016$4,253,000
4/20/20174/20/2018$14,254,000
4/20/20174/20/2018$14,254,000
4/20/20144/20/2015$14,254,000
4/4/20174/4/2018 
9/5/20179/5/2018 
4/4/20174/4/2018 
4/4/20174/4/2018 
6/10/20186/10/2019$47,750,999
7/1/20177/1/2018$27,037,800

 
How should I set up my measure(s) and tables such that I can do something like this? I realize that this may require a long explanation but I have spent half-a-day already banging my head against this so any help would be greatly appreciated.

Thank you.


1 ACCEPTED SOLUTION

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for the quick response: let me be clearer with my ask.

In my excel sample, if I selected 2017 Q2, the card should be showing 28.508M from the two 14M in row 2 & 3, since that revenue lies between the effective and expiration date.

From the pbix file, I see that it is dividing the revenue to a revenue per day and only summing up the revenue for the particular Quarter Year selected. It's different than what I had in mind.

Thanks again for trying to help.


Hi,

 

I just do not understand.  Row 2 spans one entire year.  So then why should the revenue for one quarter be the same as the revenue for the entire year.  I am absolutely confused.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This is the way how it is done for inforce policy for insurance. For inforce line premium, they are looking the total premium for all the policies that still active and talking the sum of their premiums without taking into account what part of each policy premiums lies in the quarter/day/weekly/etc view.

Hi,

 

You may download my PBI file from here.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.