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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TonyKuiper
Regular Visitor

Generate series using measure result (shown in a card) as the maximum value for the slicer??

I have several slicers on a report and they all run on parameter built generateseries() functions.

One of the slicers is currently set to 1-24 month as static inputs in the function. It is used as a sort of discount against the months consumed for a customer job.

I have tasks that run less than this max amount ie 4 months.

I have a measure will shows the months against the customer task in a card visual.

I would like to (if possible) use that value as the maximum for the generateseries() so that the slicer is limited to whatever the maximum months are based on the customer filter.

This is to prevent a 4 month job being given a 6 month discount... if that makes sense.

 

Is this even possible? I have tried writing some min/max type statements into the function but they aren't working. I have tried generating a table which sort of worked but then stayed at the first value generated and didnt update when the customer was changed.

I'm really looking to grab the actual number from the card visual and use that.

 

Thanks

 

Tony

1 ACCEPTED SOLUTION
TonyKuiper
Regular Visitor

So I managed to sort this out. I added the measure value into the selectedvalue part of the parameter by using an if statement...

Free Months Value = IF(SELECTEDVALUE('Free Months'[Free Months],0)>[MaxFreeMonths],[MaxFreeMonths],SELECTEDVALUE('Free Months'[Free Months],0))
 
Simple with the benefit of hindsight 🙄

View solution in original post

2 REPLIES 2
grazitti_sapna
Super User
Super User

Hey,

You can try using SelectedValue function in dax 

Like this:- Measure = IF(SELECTEDVALUE('Free Months'[Free Months],0)>[MaxFreeMonths],[MaxFreeMonths],SELECTEDVALUE('Free Months'[Free Months],0))

 

I hope this will help.

TonyKuiper
Regular Visitor

So I managed to sort this out. I added the measure value into the selectedvalue part of the parameter by using an if statement...

Free Months Value = IF(SELECTEDVALUE('Free Months'[Free Months],0)>[MaxFreeMonths],[MaxFreeMonths],SELECTEDVALUE('Free Months'[Free Months],0))
 
Simple with the benefit of hindsight 🙄

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors