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

Power BI doesn't summarize data for me

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().
1.jpg

 

But when I visualized data, I got this.

2.jpg

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!

1 ACCEPTED SOLUTION
PBIUser_mh
New Member

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 😅

View solution in original post

3 REPLIES 3
PBIUser_mh
New Member

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 😅

MahyarTF
Memorable Member
Memorable Member

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?

Mahyartf

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.

 

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors