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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
anil2
Frequent Visitor

An unexpected exception occured

I have a measure something like below in tabular model.It is working fine when i browse the ssas database. 

 

Measure:=DIVIDE(sum(Table1[Column1]),sum(Table2[Column2]))

 

I am using that measure in power bi and it is giving "An Unexpected exception occured" error. I tried all the visuals but still same problem.

 

Please suggest.

 

 

 

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi anil2,

 

Based on your description, you are using live connection mode, right? It seems like a SSAS error happens when you implement the measure in power bi. For troubleshooting, I would recommend you to refer to this article: https://blogs.msdn.microsoft.com/sqlblog/2014/12/16/what-is-ssas-error-an-unexpected-exception-occur....

 

Regards,

Jimmy Tao

Greg_Deckler
Community Champion
Community Champion

Try:

 

Measure:=DIVIDE(sum(Table1[Column1]),sum(Table2[Column2]),0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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