Forum Discussion
Anonymous
3 years agoNot applicable
How to Re-Enable Implicit Measures Without Tabular Editor?
I recently tried using Calculation Groups to show labels on a Line Chart with a Legend on it. However, I was not able to solve that problem with my Calculation Group and decided to delete the Calcula...
- 3 years ago
Anonymous You should be able to do this in PowerShell by modifying the DiscourageImplicitMeasures property of the model: Model.DiscourageImplicitMeasures Property (Microsoft.AnalysisServices.Tabular) | Microsoft Learn
brodoplovac
2 years agoNew Member
This could be done with Visual Studio. Visual Studio should be used as explained on this page:
https://bizkapish.com/power-bi-desktop/connect-to-power-bi-desktop-from-visual-studio/
We will just tweak the code from that web page. As stated in the web page you should replace port number and database name for your PBID instance.
using System;
using Microsoft.AnalysisServices.Tabular;
using System.IO;
namespace TOMSamples
{
class Program
{
static void Main(string[] args)
{
string ConnectionString = "DataSource=localhost:61855";
using (Server server = new Server())
{
server.Connect(ConnectionString);
var OurModel = server.Databases["d7e799b0-d15a-420d-9a51-11026b781566"].Model;
OurModel.DiscourageImplicitMeasures = false;
OurModel.SaveChanges();
}
}
}
}