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

What's the most efficient way to create a lot of similar measures?

Hi guys!

 

First of all, I hope you are well.

 

I have a simple model that goes since 1950 to 2020 and I need to create at least 4 different measures for EVERY year. The user has to be able to compare every measure with every year as he wants.

 

I know I can create every measure manually but it'll be at least a couple of hours of work, because I need to create at least 280 measures.

 

Is there any kind of authomatism to create similar measures?

 

Here is an example of a couple of measures which are similar:

 

Temp. Avg. Max. 1950 = CALCULATE([Temp. Avg. Max.];'Calendar'[Year]=1950)
Temp. Avg. Max. 1951 = CALCULATE([Temp. Avg. Max.];'Calendar'[Year]=1951)
Temp. Avg. Max. 1952 = CALCULATE([Temp. Avg. Max.];'Calendar'[Year]=1952)
.. and so son.
 
Thank you for your help!!
1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

So, no. Basially you have copy and paste available to you.

 

Why not create 1 measure and put it in a Table visualization with Year and then you can see all of 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

3 REPLIES 3
Greg_Deckler
Super User
Super User

So, no. Basially you have copy and paste available to you.

 

Why not create 1 measure and put it in a Table visualization with Year and then you can see all of 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 for your fast answer @Greg_Deckler .

 

That's a good alternative, didn't think about solving it in that way. It'll be useful.

 

However, measures will help to visualize the perform better in the graph than in the table.

 

Example.jpg

 

 

 

 

 

I was looking for information about "tabular editor", which seems to be a really useful tool. I'll dig dipper on it this week 🙂

 

https://exceleratorbi.com.au/introduction-to-tabular-editor-for-business-users/

Hi @Anonymous ,

So, have you resolved the problem? If yes, please accept the helpful answer as a solution. And welcome to share your own solutions. If you still have questions, please share more details to us. We will help you to solve it quickly.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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.