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
Robrobrob3
New Member

What If analysis - changing a date value in PowerBI

Hi there,

 

I have an Excel spreadsheet that contains an IT inventory and determines whether each component (let's say Windows Server OS 2012) is at risk at different time periods (12, 24, 36mo) based on different factors - primarily whether support date will have been surpassed. If it is a risk then 1 is returned, and otherwise 0 is returned.

 

I have hooked this spreadsheet up to PowerBI for visualisation etc. What I want is to be able to select a component and 'slide' its support date to a different date (simulating purchasing extended support for example). This in turn would alter the risk status at each time period (sliding a date from 2021 to 2024 would mean the risk at the 12 and 24mo intervals should switch from 1 to 0).

 

What's the best way to go about this? Happy to share any sample data etc. if needs be, thank you!

3 REPLIES 3
amitchandak
Super User
Super User

@Robrobrob3 , You need an independent date and what if parameter, based on what I got

 

//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = eomonth(_max, -1 * [What if param measure for month]) +1
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi there,

 

Thanks for the response. I played around with this but struggled to get it working.

 

Just to reframe: I would like to slide a date (let's say by 1 month intervals), each time it passes a defined date, another field is switched from 0 to 1. 

 

In this example I've 'slid' the date to June 2023; this is more than 12mo in the future so the 'What If' value for Tolerance Breach is set to 0:

 

Robrobrob3_3-1653987735858.png

 

Would the solution you shared help achieve this? 

 

Thank you!

 

Robin

 

 

 

Hi @Robrobrob3 ,

 

I think the method he offers should work. If possible, please share some example data and expect result even if hand-drawn.

 

Best Regards

Community Support Team _ chenwu zhu

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