Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Folks,
I am working on creating a conditional column like the below:
Condition | Values in new column |
contract to expire in 15 days from the current date | - 15 days |
contract to expire in 30 days from the current date | - 30 days |
contract to expire in 60 days from the current date | - 60 days |
contract to expire in 90 days from the current date | - 90 days |
I want the new column to be used as a filter/slicer in my report. My desired slicer outcome is
But what I get is:
Can anyone please help me here?
The logic used by me- if [expiry days]>0 and [expiry days]<60 then 60 days
if [expiry days]>0 and [expiry days]<90 then 90 days
Solved! Go to Solution.
Hello @Anonymous ,
You can achieve the desired result by separately creating column with each of this condition.
Please find my attached pbix file here pbix file
Hello @Anonymous ,
try using with: if [expiry days]>0 and [expiry days]<90 then 90 days
if [expiry days]>0 and [expiry days]<60 then 60 days
Thanks but this does not help
Hello @Anonymous ,
You can achieve the desired result by separately creating column with each of this condition.
Please find my attached pbix file here pbix file
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.