Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello all--yes, this is a very common error. Part of the DAX learning experience I guess. There are many variations it seems.
The measures (derived from measures) I'm looking to create are of the form like this: ALOS_CMI Adj = DIVIDE( [ALOS], AdjustmentFactors[CMI]).
If I use DIVIDE ( [ALOS], Min(AdjustmentFactors[CMI])) that makes it a scalar...and the individual results are good. Doesn't that make every average wrong? (though I don't plan to compute averages for a group)
So what are the options? Do I really have to store the resulting calc somehow?
Thanks,
Tom
Solved! Go to Solution.
Try using a VAR, see the blog article here:
http://community.powerbi.com/t5/Community-Blog/DAX-as-a-Language/ba-p/22120
Try using a VAR, see the blog article here:
http://community.powerbi.com/t5/Community-Blog/DAX-as-a-Language/ba-p/22120
Thanks very much. I'll try it tomorrow! Tom
@Greg_Deckler That worked great. Here's the pattern I ended up using.
XXX Adj =
// Each facility is a single scalar, but the totals are an average of the CMI's--and not adjusted
// for the case counts in each facility
VAR CMIVAL = DIVIDE(SUMX(FR2015_standardizing_file, [CMI]),COUNTX(FR2015_standardizing_file,[CMI]))
RETURN
(DIVIDE([XXX],CMIVAL))
Thanks,
Tom