Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi there,
I am quite new to Power BI and have been working on it for a moment.
I have some problems today.
As you can see, I wrote some conditions here using SWITCH().
But when I visualized data, I got this.
I have no idea why there are 2 "Expired" rows here. It's been the same with Table, Matrix and even Pie chart.
I have used SWITCH() a lot but never got this kind of confusing outcome before.
I tried refreshing the dataset. closing and reopening the file multiple times but it remains the same.
Could anyone explain why it happened?
Thank you!
Solved! Go to Solution.
Well, the issue has been solved. I just created a new calculated column with the same DAX code, visualized again and this time it worked fine.
Maybe Power BI went crazy for a while 😅
Well, the issue has been solved. I just created a new calculated column with the same DAX code, visualized again and this time it worked fine.
Maybe Power BI went crazy for a while 😅
Hi,
what is the value for '.....[3.1 Remaining time (M)]' column for particular rows, that return 'Expired' ?
Also, why do you use another switch () in the main switch() statement while you could use '=0' and '< 0' in separate lines?
Hi there,
[3.1 Remaining time (M)] is the whole number calculated by DATEDIFF() and it returns the time remaining in months
The reason I put another SWITCH() in the main SWITCH() is because when [3.1 Remaining time (M)] <= 0, I need to check further on days (which is [3.11 Remaining time (D)]) remaining too.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.