Using distinct twice in one measure

Grinch356

New Member
Joined
Jan 6, 2015
Messages
31
Hi,

I have a measure in powerpivot:

Mix % Measure Avg:=averagex(DISTINCT(Forecast[Product]),Forecast[Mix %Measure])/100

I need to use another distinct measure in this for a column called (Forecast[Submission]).

This would mean the measure takes the average of each individual product as it already does but also for each individual submission period and averages these - can anyone help with how I add this second DISTINCT qualifier to the measure,

Many thanks if you can help!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
It is difficult to understand what you are asking here. Is Forecast[Mix %Measure] a measure or a column? If it is a measure, you should not specify the table name (see my post on best practices here http://exceleratorbi.com.au/best-practices-power-pivot-power-query-power-bi/)

then you say you need "another distinct measure". I assume you mean a distinct function over the stated column. So are you saying you want to iterate over each combination of product and submission in the forecast table? If so, try replacing
distinct(forecast[product]) with

all(forecast[product],forecast[submission])
 
Upvote 0

Forum statistics

Threads
1,216,064
Messages
6,128,562
Members
449,458
Latest member
gillmit

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top