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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Formula bar not showing when attempting to create a report level measure using live connection

Hi,

 

I would like to create a report level measure using a live connection to a tabular SSAS model, which I assume is possible, see:

 

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-analysis-services-tabular-data

 

However, when I click "New Measure" I only get the "Measure tools" option in ribbon but no formula bar to write DAX formula. Does anyone have clue why that might be?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous  @mic_rys 

 

Update: The bug has been fixed and ported to SU11.  Please wait.

 

Best Regards,

Community Support Team _ Janey

View solution in original post

18 REPLIES 18
JohnF1966
Advocate V
Advocate V

This issue is NOT solved. The formula bar will suddendly not appear in 'Report view' when creating or editing a measure. It shows up on initially opening a PBIX file, but after a while it won't show up and I have to switch to either 'Table view' or 'Query view' to see and edit my measures.

 

The only thing that restores the ability to see and edit measures when in 'Report view' is by closing Power BI and then opening the file(s) again.

dbtl
Frequent Visitor

I opened the error and noticed...

JS Error Message:
Cannot read properties of undefined (reading 'capabilities')

I can see my measures by name and I can use them in a report but I don't get a code window when I click them and choosing hte elipsis brings up the "Something went wrong" dialog "An error occurred while rendering the report". Copy tdetails to clipboard passes a lot of text to he clipboard which I opened in VS code. 

Hopefully this helps someone to track the issue.

Error Message:
An error occurred while rendering the report.

Stack Trace:
JavaScript:TypeError
at canRename (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:459414:43)
    at RenameDeleteMenuItemHandlers.capabilitiesCheck (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:334109:55)
    at RenameDeleteMenuItemHandlers.getHandlers (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:334094:51)
    at FieldListMenuStrategy.getItemMenuHandlers (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:334655:94)
    at FieldListMenuStrategy.getMenu (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:334641:83)
    at https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:509375:52
    at PbiTreeComponent.handleMenuOperation (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:509353:113)
    at PbiTreeComponent.handleContextMenu (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:509342:26)
    at PbiTreeNodeComponent.handleContextMenu (https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:510007:56)
    at https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js:509968:70

Stack Trace Message:
An error occurred while rendering the report.

Invocation Stack Trace:
   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
   at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
   at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass14_0.<HandleException>b__0()
   at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.PowerBI.Client.PowerBIUnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.PowerBI.Client.Windows.Utilities.PowerBIFormUnexpectedExceptionHandler.HandleException(Exception e)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.InvokeCs(InteropCall call)
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
   at Microsoft.PowerBI.Client.Program.<>c__DisplayClass6_0.<RunApplication>b__0()
   at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.PowerBI.Client.Program.RunApplication(String[] args)
   at Microsoft.PowerBI.Client.Program.Main(String[] args)


JS Error Message:
Cannot read properties of undefined (reading 'capabilities')

PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.124.1052.0","ModuleName":"https://ms-pbi.pbi.microsoft.com/minerva/scripts/desktop.js","Component":"","Error":"TypeError","MethodDef":"canRename","ErrorOffset":"459414:43","ErrorCode":""}
 
TigerBI
New Member

Hi,

 

I have this same problem in the following version:
Version: 2.123.684.0 64-bit (November 2023)

Specifically happens when connected to PowerBI dataset and SQL Server Analysis Services database.

Same thing for us.. we have already rolled back to the October version and that resolves the problem as mentioned already in this thread.

Looking forward to some communication from Microsoft on this behaviour of the formular bar. 

Also running into this issue with the November 2023 update!

Solution is to uninstall your November version and re-download the October version for now! 

https://community.fabric.microsoft.com/t5/Desktop/Cannot-create-measures-in-pbix-with-Live-Connectio...

Thank you I will try that this evening.

Syndicate_Admin
Administrator
Administrator

I have the same problem when selecting a measure from the source data model

however I can create new measures and edit them....

v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous  @mic_rys 

 

Update: The bug has been fixed and ported to SU11.  Please wait.

 

Best Regards,

Community Support Team _ Janey

I have the issue still but my PBI desktop shows...

Release: December 2023

Product Version: 2.124.1052.0 (23.12) (x64)

OS Version: Microsoft Windows NT 10.0.19045.0 (x64 en-US)

CLR Version: 4.8 or later [Release Number = 533325]


Are you sure it is fixed in the most recent update?

I'm having the same issue on desktop version 2.123.684.0 64-bit (November 2023), I click create measure, the measure is created, I can change properties of the measure in the Measure Tools ribbon but i can't see the formula bar. I'm connected to a Tabular Analysis Services Model.

v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

Do you still have problems? What's your desktop version? Have you re-connected and try again?

I tested in my device and everything is normal ,I can see the measure formula bar.

vjaneygmsft_0-1635146646659.png

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

Anonymous
Not applicable

Hi Janey,

 

Yes, it's not showing at all. I have tried reconnecting, yes. I also checked with imported data rather than a live connection, and then it worked fine.

 

My Power BI Desktop version is: 2.98.683.0 64-bit.

Hi, @Anonymous 

 

Do you have other models that can be connected in LC mode?  It can judge whether the problem comes from the model.

You can also try to install the latest version(2.98.882.0😞

Download Microsoft Power BI Desktop from Official Microsoft Download Center

 

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

Anonymous
Not applicable

Hi Janey,

 

Yes, and I tried connecting to other SSAS tabular models with the same results.

 

I also tried updating Power BI desktop and tried the same again with no luck.

I have the same problem, I don't see the code of the existing measure. I have to add some dummy measure, then I can edit the rest of measures. The problem exists when I use live connection.

Hi,  @Anonymous 

 

You can temporarily use the September version: Previous monthly updates to Power BI Desktop and the Power BI service - Power BI | Microsoft Docs

This issue has been submitted internally. Internal ICM ID:268733385 Please be patient to wait for fixing. If there is any news, I will update it here.


Best Regards,
Community Support Team _ Janey

PowerBi has been upgraded to the November release, and the behavior described in the original post is still occurring. Did the fix get pushed as expected?

@jakeday  Yes, someone reported the problem. It is still being confirmed whether it is a bug or by design. Please wait.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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