Skip to main content

Calculated Measures on a Halloween Full Moon


According to The Old Farmers Almanac, a "full moon on Halloween only occurs roughly once every 19 years. If the full moons are calculated using Greenwich Mean Time, that translates to approximately three to four times per century." And on the day I am writing this post, October 31st of the year 2020, there is a full moon.  Spooky, huh?  Frightening? Maybe. But not as scary as having too many calculated measures in your Power BI reports! <Ba dum tss> Okay, so maybe the full moon and candy are getting to me.

 If you have made calculated measures for your reports, you know that they can quickly become quite numerous.  Also, if you are not aware yet a measure only gets run when brought into a visual and a measure is dynamic.  This means that a measure does not need to be housed/located on a specific table in order to function.  So the question becomes where should I put my measures.  There are a few ways to organize these.

 1)   No organization plan at all.  Just put them all over the place.  Not the way I like to make a report, but they will still work.

2) Make a measures folder in one of your tables and house all your measures there.  This solution is much better than the one mentioned above.  You just need to remember what table you put this folder in.

3) Make a separate table that contains no data, and put your measures there.  This is my preferred method and I will walk you through it below.  I also like to put a special character in front of my table name so that it either is always located at the top in my field pane or at the very bottom.  I usually use a forward slash “/” to get it right at the top.

To make a table when in report view, go to the home ribbon and click Enter Data.



 

 

No need to put in any info into the table at this point.  Just name your table and click load.  Again, I like to put that forward slash in front so it will bring this table to the top of the fields pane.

 



 

That is it.  You are all done and you now have



 

 


Comments

Popular posts from this blog

The Power of CALCULATE in Power BI

Last week in my blog and video I discussed how Power BI could have made my life as a teacher much easier.  It is not that Power BI can do things that I could not on my own.  It is the fact that Power BI could have saved me so much time.   This led me to some thoughts and questions.   How could I have impacted the students more in the classroom with this extra time?  Would teachers who were not analyzing student data due to time constraints now start?  How can I make the data tell my students a story that gives them an accurate picture of their progress?   That last question is what leads to this week’s blog.   Many times the metrics (which is just a fancy word for "numbers") of what we want to show are easy to do by hand with a basic math background.  Although easy, it can be very time consuming when dealing with different groups of data: like 6 periods of students instead of 1 period. When we want to do these calculations quickl...

The Teacher Becomes the Student

My wife asked how my first day was going so I sent her this selfie. Only a picture could capture it.  First, let me tell you that this won’t be your typical Power BI or tech blog that you usually see. Let me set the scene. It was a year and a half ago when I got lucky enough to be introduced to Brian Knight, the CEO of Pragmatic Works over lunch. He had heard from a mutual friend that I was looking to make a career move after teaching Algebra for the past 15 years. Brian started telling me about the company and all the different facets it encompasses. From training, sales, consulting, and app development. Mind you at this time I had never heard of Microsoft Power BI, SQL Server, Microsoft Azure, or have any experience with coding. He told me an opportunity at his company may present itself in the future where I could transfer over my teaching skills into the training side of the above-mentioned programs. I immediately got to work with their On-Demand Learning system to ...

Power BI Makes APPs, too? A Quick Guide to Understanding that an APP is like a CONTAINER

POWER BI can make apps too?   Wait, then what is the point of Microsoft Power Apps?   Well, that’s where there can be confusion and I see it often during my training sessions.   An app in Power BI is COMPLETELY AND UTTERLY DIFFERENT from an app in Microsoft Power Apps.     According to Microsoft a Power BI App is, “ An  app  is a Power BI content type that combines related dashboards and reports, all in one place. An app can have one or more dashboards and one or more reports, all bundled together.”  Notice how the word app has been italicized.  I didn’t format it that way.  I believe "app" is italicized in their documentation because the semantics can be confusing and intermingled. So let me give you my brief overview of a Power BI app.   Next week’s blog will dive into deeper details and have a video demonstration as well. I like to think of an app as a container where you place all the dashboards, reports, and workbooks you w...