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

Hide underlying formula for measures and columns

Hi all,

 

I cant seem to find an answer to this question.

 

I have a power bi file which connects to multiple excel and csv data sources. In this file, I have created quite a few measures and columns. Is there a way to hide the underlying formula writted to derive the measure?

 

When i share the pbix file, can the underlying formula be locked down to be seen only at the query editor view and not when clicking the mesure to create visuals?

 

Many thanks

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Here is one thing that you could do. Create two Blank Query tables. Place all of your measures in one of the tables. Create the same measures with slightly different names in the second that simply reference the measures in the other table. Now, hide the first table with the actual formulas in them.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

The work around is that by keeping all the formulas in Visual studio and push the output to excel or access tables. Link the final table in power bi.

Greg_Deckler
Super User
Super User

Here is one thing that you could do. Create two Blank Query tables. Place all of your measures in one of the tables. Create the same measures with slightly different names in the second that simply reference the measures in the other table. Now, hide the first table with the actual formulas in them.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you Greg! I will give this a shot. Additionally, can i use tools like visual studio to write my measure in and then push them in Power BI with an idea that all underlying formula is in VS and not in Power BI?

hi, @Anonymous 

I think it is impossible for now,

Power bi desktop is the development tool for you to develop the report and publish them to power bi service.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.