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

Current Year vs Previous Year - Explosion of Measures

Hi there

 

So I want to show values on a chart for current year and previous year. I don't have a problem getting this right, and set up measure called "Sales Current Year", "Sales Prior Year". My concern is that I have to do this for each value I have. So I might have Cost of Sales, GP, Qty etc etc. So basically you then get a pretty big explosion of measures.

Furthermore, if I then want to show cumulative amount, this leads to further permutions. Very soon I can end up with a huge number of fields eg:

Sales Value

Sales Value Current Year

Sales Value Prior Year

Sales Value Current Month

Sales Value Current Month Cumul

etc, etc

 

Am I missing something? Is there a more effective way of handling this?

 

Many thanks!

 

Regards

Chris

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous -

The issue is that you actually need all of those measures, so they must be created.

A couple of potential approaches:

1. You can organize your measures with Display folders.

2. If reducing the number of measures is a high priority, it is possible to re-use the same measure to display different metrics. To do this:

-Create an unrelated Parameter table which specifies which metric you are analyzing. For example, let's say you have only, Sales and Qty. You could filter on this parameter.

-Have a measure called Value, which calculates Sales or Qty depending on your selection. 

-Build other measures off of the base measure.

 

There are some potential issues with #2:

1. All values will have a shared formatting

2. Performance could suffer

3. The measure names will be less descriptive

 

Hope this helps,

Nathan

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous -

The issue is that you actually need all of those measures, so they must be created.

A couple of potential approaches:

1. You can organize your measures with Display folders.

2. If reducing the number of measures is a high priority, it is possible to re-use the same measure to display different metrics. To do this:

-Create an unrelated Parameter table which specifies which metric you are analyzing. For example, let's say you have only, Sales and Qty. You could filter on this parameter.

-Have a measure called Value, which calculates Sales or Qty depending on your selection. 

-Build other measures off of the base measure.

 

There are some potential issues with #2:

1. All values will have a shared formatting

2. Performance could suffer

3. The measure names will be less descriptive

 

Hope this helps,

Nathan

Anonymous
Not applicable

Hi Nathan

 

Much appreciated!

 

Regards

Chris

 

 

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.